util/hexdump: introduce qemu_hexdump_line()
commitbbb169080fe55947b40f8e035eb205316e9b29a5
authorLaurent Vivier <lvivier@redhat.com>
Fri, 25 Sep 2020 09:10:54 +0000 (25 11:10 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Sep 2020 06:14:30 +0000 (29 02:14 -0400)
tree241ab665b8b75d6dd25074e4d3f0d9864b271e00
parentf68ec01fe965e8c06ce6181fe28e1a9bef352cff
util/hexdump: introduce qemu_hexdump_line()

Dumping one line of hexadecimal/ASCII from a buffer is often needed.
Move this part from qemu_hexdump() and use it

Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20200925091055.186023-2-lvivier@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/qemu-common.h
util/hexdump.c