Skip to content

Commit

Permalink
fix printf types
Browse files Browse the repository at this point in the history
  • Loading branch information
phaseloop committed Jan 16, 2024
1 parent be374ec commit b317d34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/cmdhfmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit b317d34

Please sign in to comment.