On 12/4/24 09:33, Richard Henderson wrote:
Require that the caller output the offset and increment bufptr.
Use QEMU_HEXDUMP_LINE_BYTES in vhost_vdpa_dump_config instead
of raw integer.

Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
---
  include/qemu/cutils.h  |  2 +-
  hw/virtio/vhost-vdpa.c |  4 ++--
  util/hexdump.c         | 13 ++++++-------
  hw/virtio/trace-events |  2 +-
  4 files changed, 10 insertions(+), 11 deletions(-)


diff --git a/hw/virtio/trace-events b/hw/virtio/trace-events
index 96632fd026..d01bc85037 100644
--- a/hw/virtio/trace-events
+++ b/hw/virtio/trace-events
@@ -50,7 +50,7 @@ vhost_vdpa_get_device_id(void *dev, uint32_t device_id) "dev: %p 
device_id %"PRI
  vhost_vdpa_reset_device(void *dev) "dev: %p"
  vhost_vdpa_get_vq_index(void *dev, int idx, int vq_idx) "dev: %p idx: %d vq idx: 
%d"
  vhost_vdpa_set_vring_enable_one(void *dev, unsigned i, int enable, int r) "dev: 
%p, idx: %u, enable: %u, r: %d"
-vhost_vdpa_dump_config(void *dev, const char *line) "dev: %p %s"
+vhost_vdpa_dump_config(void *dev, unsigned ofs, const char *line) "dev: %p %04x: 
%s"

Queued squashing "0x" due to:

    ERROR: Hex numbers must be prefixed with '0x'
    #108: FILE: hw/virtio/trace-events:53:
+vhost_vdpa_dump_config(void *dev, unsigned ofs, const char *line) "dev: %p %04x: %s"

    total: 1 errors, 0 warnings, 67 lines checked



Reply via email to