From 24f7c7b96ab26ddae8d1b0a1b87120d36c52481d Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Fri, 16 Jun 2017 17:14:53 +0200 Subject: [PATCH] shell: flash: display offsets properly --- source/shell/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shell/flash.c b/source/shell/flash.c index 355cc80..9466aa9 100644 --- a/source/shell/flash.c +++ b/source/shell/flash.c @@ -62,7 +62,7 @@ static void print_hex_ascii(uint32_t offset, const char *buf, size_t len) for (; len; buf += n, len -= n) { n = min(len, 16); - printf("%04" PRIx32 ": ", offset); + printf("%08" PRIx32 ": ", offset); for (i = 0; i < 16; ++i) { c = (i < n) ? buf[i] : 0;