Signed-off-by: lichun <706701...@qq.com> --- qemu-io-cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-io-cmds.c b/qemu-io-cmds.c index 09750a2..8d93dc6 100644 --- a/qemu-io-cmds.c +++ b/qemu-io-cmds.c @@ -357,7 +357,7 @@ static void dump_buffer(const void *buffer, int64_t offset, int64_t len) int j; const uint8_t *p; - for (i = 0, p = buffer; i < len; i += 16) { + for (i = 0, p = buffer + offset; i < len; i += 16) { const uint8_t *s = p; printf("%08" PRIx64 ": ", offset + i); -- 1.8.3.1