From c5a38dc195cd02b94a6541fda2c61cc1f7cdb62a Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Tue, 1 Mar 2022 08:39:29 +0000 Subject: [PATCH] Fix: Corrected escaping in %H (to MSB first) --- log/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/log.c b/log/log.c index 7eb9933..c1f18df 100644 --- a/log/log.c +++ b/log/log.c @@ -653,8 +653,8 @@ static void __vsnprintf(char *str, size_t size, const char *format, va_list ap) } else { *(str++) = '\\'; *(str++) = 'x'; - *(str++) = hextable[(*arg >> 0) & 0x0F]; *(str++) = hextable[(*arg >> 4) & 0x0F]; + *(str++) = hextable[(*arg >> 0) & 0x0F]; /* Also count the additional chars for string size and block length */ size -= 3; block_len -= 3;