From d1a82f333ae69d4ec7f1b284979094b9891f65c2 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Fri, 16 Jun 2017 17:08:39 +0200 Subject: [PATCH] shell: flash: add padding in print_hex() --- 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 680459a..538b459 100644 --- a/source/shell/flash.c +++ b/source/shell/flash.c @@ -64,7 +64,7 @@ static void print_hex_ascii(const char *buf, size_t len) for (i = 0; i < 16; ++i) { c = (i < n) ? buf[i] : 0; - printf("%x", c); + printf("%02x ", c); } printf(" ");