diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-03-07 19:20:50 +0900 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2024-03-11 17:06:06 +0000 |
| commit | b1250455c71193ad92cb7c98ee54078ce33e0b04 (patch) | |
| tree | 3e6f3e3ce04edc547cc11da6dddac24dc0ea6704 /contrib/elf2dmp/main.c | |
| parent | 1b806c36bc88a975cc10af219f1a397942f43e8d (diff) | |
| download | focaccia-qemu-b1250455c71193ad92cb7c98ee54078ce33e0b04.tar.gz focaccia-qemu-b1250455c71193ad92cb7c98ee54078ce33e0b04.zip | |
contrib/elf2dmp: Fix error reporting style in pdb.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-7-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 d295fd92be..7a3a722590 100644 --- a/contrib/elf2dmp/main.c +++ b/contrib/elf2dmp/main.c @@ -596,7 +596,7 @@ int main(int argc, char *argv[]) goto out_ps; } - if (pdb_init_from_file(PDB_NAME, &pdb)) { + if (!pdb_init_from_file(PDB_NAME, &pdb)) { eprintf("Failed to initialize PDB reader\n"); goto out_pdb_file; } |