From: Denys Vlasenko Date: Fri, 22 Feb 2013 14:00:11 +0000 (+0100) Subject: Fix wrong offset display in dumpstr X-Git-Tag: v4.8~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f90979b7014b6b158eed6105b1bdf6014cea70f6;p=strace 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 --- 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); } }