From f90979b7014b6b158eed6105b1bdf6014cea70f6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 22 Feb 2013 15:00:11 +0100 Subject: [PATCH] Fix wrong offset display in dumpstr BTW, the new code from prev commit is 5 times faster than old one :) Signed-off-by: Denys Vlasenko --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index b398625e..405670e6 100644 --- a/util.c +++ b/util.c @@ -724,7 +724,7 @@ dumpstr(struct tcb *tcp, long addr, int len) src++; } while (++i & 0xf); *dst = '\0'; - tprintf(" | %05x %s |\n", i, outbuf); + tprintf(" | %05x %s |\n", i - 16, outbuf); } } -- 2.40.0