diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-08-22 20:09:49 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-09-11 21:25:59 +0200 |
commit | 67263b33af9506d78558b1edfa5a9bf976dc7b3d (patch) | |
tree | ad3ac55019240c2efb2cb67bcd24cbe0bf76bdbb /include | |
parent | 5ace4cc0e8d818d578b3777a23d477a5e42070eb (diff) | |
download | qemu-67263b33af9506d78558b1edfa5a9bf976dc7b3d.zip qemu-67263b33af9506d78558b1edfa5a9bf976dc7b3d.tar.gz qemu-67263b33af9506d78558b1edfa5a9bf976dc7b3d.tar.bz2 |
util/hexdump: Convert to take a void pointer argument
Most uses of qemu_hexdump() do not take an array of char
as input, forcing use of cast. Since we can use this
helper to dump any kind of buffer, use a pointer to void
argument instead.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20200822180950.1343963-2-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu-common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h index bb9496b..6834883 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -138,7 +138,8 @@ int os_parse_cmd_args(int index, const char *optarg); * Hexdump a buffer to a file. An optional string prefix is added to every line */ -void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size); +void qemu_hexdump(const void *bufptr, FILE *fp, + const char *prefix, size_t size); /* * helper to parse debug environment variables |