From b317d34cfd7249bc2ecf9848e505f1b07a0bd221 Mon Sep 17 00:00:00 2001 From: PhaseLoop Date: Tue, 16 Jan 2024 22:48:58 +0000 Subject: [PATCH] fix printf types --- client/src/cmdhfmf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 5a4ff3e86..d2aadadab 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -3482,7 +3482,7 @@ static int CmdHF14AMfSmartBrute(const char *Cmd) { PrintAndLogEx(INFO, "Running bruteforce stage %d", smart_mode_stage); if (msclock() - t1 > 0 && keys_checked > 0) { - PrintAndLogEx(INFO, "Current cracking speed (keys/s): %u", + PrintAndLogEx(INFO, "Current cracking speed (keys/s): %lu", keys_checked / ((msclock() - t1) / 1000)); t1 = msclock(); @@ -3508,7 +3508,7 @@ static int CmdHF14AMfSmartBrute(const char *Cmd) { out: PrintAndLogEx(INFO, "Time in brute mode: " _YELLOW_("%.1fs") "\n", (float)((msclock() - t0) / 1000.0)); - PrintAndLogEx(INFO, "Total keys checked: " _YELLOW_("%u") "\n", total_keys_checked); + PrintAndLogEx(INFO, "Total keys checked: " _YELLOW_("%lu") "\n", total_keys_checked); // check.. uint8_t found_keys = 0; for (i = 0; i < sectorsCnt; ++i) {