mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
util/hexdump: Add unit_len and block_len to qemu_hexdump_line
Generalize the current 1 byte unit and 4 byte blocking within the output. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20240412073346.458116-5-richard.henderson@linaro.org>
This commit is contained in:
parent
53ee5f551e
commit
c49d1c37d8
3 changed files with 27 additions and 11 deletions
|
@ -951,7 +951,7 @@ static void vhost_vdpa_dump_config(struct vhost_dev *dev, const uint8_t *config,
|
|||
len = MIN(config_len - b, 16);
|
||||
|
||||
g_string_truncate(str, 0);
|
||||
qemu_hexdump_line(str, config + b, len);
|
||||
qemu_hexdump_line(str, config + b, len, 1, 4);
|
||||
trace_vhost_vdpa_dump_config(dev, b, str->str);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue