qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH] Fixed dump_buffer function parameter offset does no


From: lichun
Subject: [Qemu-block] [PATCH] Fixed dump_buffer function parameter offset does not take effect
Date: Thu, 4 Apr 2019 19:46:45 +0800

Signed-off-by: lichun <address@hidden>
---
 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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]