fix code scanning format warnings

This commit is contained in:
iceman1001
2026-06-30 00:27:10 +02:00
parent 896a42dba1
commit d5beefa6bb
3 changed files with 15 additions and 8 deletions
+10 -4
View File
@@ -1598,8 +1598,11 @@ static int CmdHFiClassTagSim(const char *Cmd) {
PrintAndLogEx(INFO, "Starting iCLASS full simulation");
if (bin_len == 0) {
PrintAndLogEx(INFO, _GREEN_("Arrow keys") ": "_CYAN_("up/down")" = FC+/- "_CYAN_("right/left")" = CN+/- | " _GREEN_("Enter") " or " _GREEN_("`pm3 button`") " to stop");
PrintAndLogEx(INFO, "FC: " _YELLOW_("%u") " CN: " _YELLOW_("%u") " CSN: " _YELLOW_("%s"),
card.FacilityCode, card.CardNumber, sprint_hex(csn, 8));
PrintAndLogEx(INFO, "FC: " _YELLOW_("%u") " CN: " _YELLOW_("%"PRIu64) " CSN: " _YELLOW_("%s"),
card.FacilityCode,
card.CardNumber,
sprint_hex(csn, 8)
);
} else {
PrintAndLogEx(INFO, "Press " _GREEN_("`pm3 button`") " to abort");
}
@@ -1718,8 +1721,11 @@ static int CmdHFiClassTagSim(const char *Cmd) {
}
iclass_emul_set_reload_flag(); // signal ARM to reload on next ACTALL
PrintAndLogEx(INFO, "FC: " _YELLOW_("%u") " CN: " _YELLOW_("%u") " CSN: " _YELLOW_("%s"),
card.FacilityCode, card.CardNumber, sprint_hex(csn, 8));
PrintAndLogEx(INFO, "FC: " _YELLOW_("%u") " CN: " _YELLOW_("%"PRIu64) " CSN: " _YELLOW_("%s"),
card.FacilityCode,
card.CardNumber,
sprint_hex(csn, 8)
);
}
tagsim_rawmode_exit();
+4 -3
View File
@@ -7256,10 +7256,11 @@ int CmdHFMFNDEFRead(const char *Cmd) {
int res = MADCheck(&sector0, pmad2, verbose, &haveMAD2);
if (res != PM3_SUCCESS) {
PrintAndLogEx(ERR, "MAD error %d", res);
if (override)
if (override) {
PrintAndLogEx(INFO, "overriding CRC check");
else
} else {
return res;
}
}
mad_entry_list_t mad_list = {0};
@@ -7282,7 +7283,7 @@ int CmdHFMFNDEFRead(const char *Cmd) {
memcpy(&data[datalen], vsector, MFBLOCK_SIZE * 3);
datalen += MFBLOCK_SIZE * 3;
PrintAndLogEx(INPLACE, "%d", i);
PrintAndLogEx(INPLACE, "%zu", i);
}
}
PrintAndLogEx(NORMAL, "");
+1 -1
View File
@@ -2843,7 +2843,7 @@ int CmdHFMFPNDEFRead(const char *Cmd) {
memcpy(&data[datalen], vsector, 16 * 3);
datalen += 16 * 3;
PrintAndLogEx(INPLACE, "%d", i);
PrintAndLogEx(INPLACE, "%zu", i);
}
}
PrintAndLogEx(NORMAL, "");