From 5848b31ee1948cd31c7d3929112b7b1eee144462 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 18 Oct 2024 19:44:27 +0200 Subject: [PATCH] trace list: don't mix 02x and 02X --- client/src/cmdtrace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/cmdtrace.c b/client/src/cmdtrace.c index 8b217ec22..56e9136cc 100644 --- a/client/src/cmdtrace.c +++ b/client/src/cmdtrace.c @@ -624,7 +624,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr && (hdr->isResponse || protocol == ISO_14443A || protocol == PROTO_MIFARE || protocol == PROTO_MFPLUS || protocol == SEOS) && (oddparity8(frame[j]) != ((parityBits >> (7 - (j & 0x0007))) & 0x01))) { - snprintf(line[j / 18] + ((j % 18) * 4), 120, "%02x! ", frame[j]); + snprintf(line[j / 18] + ((j % 18) * 4), 120, "%02X! ", frame[j]); } else if (protocol == ICLASS && hdr->isResponse == false) { @@ -634,9 +634,9 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr } if (parity == ((frame[0] >> 7) & 1)) { - snprintf(line[j / 18] + ((j % 18) * 4), 120, "%02x ", frame[j]); + snprintf(line[j / 18] + ((j % 18) * 4), 120, "%02X ", frame[j]); } else { - snprintf(line[j / 18] + ((j % 18) * 4), 120, "%02x! ", frame[j]); + snprintf(line[j / 18] + ((j % 18) * 4), 120, "%02X! ", frame[j]); } } else if (((protocol == PROTO_HITAG1) || (protocol == PROTO_HITAG2) || (protocol == PROTO_HITAGS))) { -- 2.11.4.GIT