From 5e6b7ba5dc688bc9addfd89fca0c532bc2af248c Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 4 Jul 2019 17:24:52 +0200 Subject: Ajout d'indices dans les traces --- test/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/debug.h b/test/debug.h index d958475..56cd123 100644 --- a/test/debug.h +++ b/test/debug.h @@ -30,7 +30,7 @@ static inline void debug_dump_buffer(const char *header, size_t len, const uint8 for (size_t line=0; line %zu]", line, b, line*8+b); */ @@ -42,7 +42,7 @@ static inline void debug_dump_buffer(const char *header, size_t len, const uint8 size_t rest = len%8; if (rest != 0) { - fprintf(DUMP, "%*s", indent, ""); + fprintf(DUMP, "%*s[0x%02zx] ", indent, "", len-rest); for (size_t b=0; b