From bf6650115c2dd0600ed99ef06f5b6234941b5b99 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 10 Sep 2021 17:09:40 +0200 Subject: [PATCH] wip --- slsDetectorServers/slsDetectorServer/src/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsDetectorServers/slsDetectorServer/src/common.c b/slsDetectorServers/slsDetectorServer/src/common.c index c33beadf5..5c3623b70 100644 --- a/slsDetectorServers/slsDetectorServer/src/common.c +++ b/slsDetectorServers/slsDetectorServer/src/common.c @@ -283,7 +283,7 @@ int verifyChecksumFromFlash(char *mess, char *clientChecksum, char *fname, buf[0] = lastByte; if (totalBytesRead == 2 * bytes) { for (int i = 0; i < 26; ++i) { - printf("i:[0x%02x]\n", i, (uint8_t)buf[i]); + printf("%d:[0x%02x]\n", i, (uint8_t)buf[i]); } } // shift by 4 bits to the left @@ -292,7 +292,7 @@ int verifyChecksumFromFlash(char *mess, char *clientChecksum, char *fname, } if (totalBytesRead == 2 * bytes) { for (int i = 0; i < 26; ++i) { - printf("i:[0x%02x]\n", i, (uint8_t)buf[i]); + printf("%d:[0x%02x]\n", i, (uint8_t)buf[i]); } } lastByte = buf[bytes];