lilliput-ae-reference-implementation

Implementations of Lilliput-AE submitted to the NIST LWC standardization process
git clone https://git.kevinlegouguec.net/lilliput-ae-reference-implementation
Log | Files | Refs | README

commit 5e6b7ba5dc688bc9addfd89fca0c532bc2af248c
parent de866ad56fd465e89c9df6c6e12e0819098be386
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Thu,  4 Jul 2019 17:24:52 +0200

Ajout d'indices dans les traces

Diffstat:
Mtest/debug.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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<len/8; line++) { - fprintf(DUMP, "%*s", indent, ""); + fprintf(DUMP, "%*s[0x%02zx] ", indent, "", line*8); for (size_t b=0; b<8; b++) { /* fprintf(DUMP, "[%zu / %zu => %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<rest; b++) { fprintf(DUMP, "%02x ", buf[len-rest+b]);