util/hexdump: Use a GString for qemu_hexdump_line
commit53ee5f551e5743516c90a662425276cae4cf0aeb
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 Apr 2024 07:33:22 +0000 (12 00:33 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 5 Jun 2024 19:13:42 +0000 (5 12:13 -0700)
tree4544265752101f0a14190e9bab455fae03b2a63b
parentf1572ab94738bd5787b7badcd4bd93a3657f0680
util/hexdump: Use a GString for qemu_hexdump_line

Allocate a new, or append to an existing GString instead of
using a fixed sized buffer.  Require the caller to determine
the length of the line -- do not bound len here.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240412073346.458116-4-richard.henderson@linaro.org>
hw/virtio/vhost-vdpa.c
include/qemu/cutils.h
util/hexdump.c