mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
util/hexdump: Reorder qemu_hexdump() arguments
qemu_hexdump()'s pointer to the buffer and length of the buffer are closely related arguments but are widely separated in the argument list order (also, the format of <stdio.h> function prototypes is usually to have the FILE* argument coming first). Reorder the arguments as "fp, prefix, buf, size" which is more logical. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Message-Id: <20200822180950.1343963-3-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
67263b33af
commit
b42581f5bb
10 changed files with 23 additions and 23 deletions
|
@ -357,7 +357,7 @@ static ssize_t etsec_receive(NetClientState *nc,
|
|||
|
||||
#if defined(HEX_DUMP)
|
||||
fprintf(stderr, "%s receive size:%zd\n", nc->name, size);
|
||||
qemu_hexdump(buf, stderr, "", size);
|
||||
qemu_hexdump(stderr, "", buf, size);
|
||||
#endif
|
||||
/* Flush is unnecessary as are already in receiving path */
|
||||
etsec->need_flush = false;
|
||||
|
|
|
@ -269,7 +269,7 @@ static void process_tx_bd(eTSEC *etsec,
|
|||
|
||||
#if defined(HEX_DUMP)
|
||||
qemu_log("eTSEC Send packet size:%d\n", etsec->tx_buffer_len);
|
||||
qemu_hexdump(etsec->tx_buffer, stderr, "", etsec->tx_buffer_len);
|
||||
qemu_hexdump(stderr, "", etsec->tx_buffer, etsec->tx_buffer_len);
|
||||
#endif /* ETSEC_RING_DEBUG */
|
||||
|
||||
if (etsec->first_bd.flags & BD_TX_TOEUN) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue