aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-04-12 00:33:23 -0700
committerRichard Henderson <richard.henderson@linaro.org>2024-06-05 12:14:18 -0700
commitc49d1c37d89a2ea994861600859b7dcd3ffa4ede (patch)
tree7ffa4ab7e75b882876970e23a54d391aefc97407 /hw
parent53ee5f551e5743516c90a662425276cae4cf0aeb (diff)
downloadqemu-c49d1c37d89a2ea994861600859b7dcd3ffa4ede.zip
qemu-c49d1c37d89a2ea994861600859b7dcd3ffa4ede.tar.gz
qemu-c49d1c37d89a2ea994861600859b7dcd3ffa4ede.tar.bz2
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/virtio/vhost-vdpa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
index 419463c..3cdaa12 100644
--- a/hw/virtio/vhost-vdpa.c
+++ b/hw/virtio/vhost-vdpa.c
@@ -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);
}
}