diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-03-07 19:20:51 +0900 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2024-03-11 17:06:06 +0000 |
| commit | 49760ccf862ff6cd0b18dd5897a60f8d708a6e52 (patch) | |
| tree | 7de7fccaaa309dee13c5e69492a192b91d8b0691 /contrib/elf2dmp/main.c | |
| parent | b1250455c71193ad92cb7c98ee54078ce33e0b04 (diff) | |
| download | focaccia-qemu-49760ccf862ff6cd0b18dd5897a60f8d708a6e52.tar.gz focaccia-qemu-49760ccf862ff6cd0b18dd5897a60f8d708a6e52.zip | |
contrib/elf2dmp: Fix error reporting style in qemu_elf.c
include/qapi/error.h says: > We recommend > * bool-valued functions return true on success / false on failure, > ... Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Tested-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20240307-elf2dmp-v4-8-4f324ad4d99d@daynix.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'contrib/elf2dmp/main.c')
| -rw-r--r-- | contrib/elf2dmp/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/elf2dmp/main.c b/contrib/elf2dmp/main.c index 7a3a722590..cb28971789 100644 --- a/contrib/elf2dmp/main.c +++ b/contrib/elf2dmp/main.c @@ -535,7 +535,7 @@ int main(int argc, char *argv[]) return 1; } - if (QEMU_Elf_init(&qemu_elf, argv[1])) { + if (!QEMU_Elf_init(&qemu_elf, argv[1])) { eprintf("Failed to initialize QEMU ELF dump\n"); return 1; } |