fix code scanning format warnings
This commit is contained in:
1 parent
896a42dba1
commit
d5beefa6bb
3 files changed
+15
-8
No files matched your search
@@ -1598,8 +1598,11 @@ static int CmdHFiClassTagSim(const char *Cmd) {
|
|||||||
PrintAndLogEx(INFO, "Starting iCLASS full simulation");
|
PrintAndLogEx(INFO, "Starting iCLASS full simulation");
|
||||||
if (bin_len == 0) {
|
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, _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"),
|
PrintAndLogEx(INFO, "FC: " _YELLOW_("%u") " CN: " _YELLOW_("%"PRIu64) " CSN: " _YELLOW_("%s"),
|
||||||
card.FacilityCode, card.CardNumber, sprint_hex(csn, 8));
|
card.FacilityCode,
|
||||||
|
card.CardNumber,
|
||||||
|
sprint_hex(csn, 8)
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(INFO, "Press " _GREEN_("`pm3 button`") " to abort");
|
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
|
iclass_emul_set_reload_flag(); // signal ARM to reload on next ACTALL
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "FC: " _YELLOW_("%u") " CN: " _YELLOW_("%u") " CSN: " _YELLOW_("%s"),
|
PrintAndLogEx(INFO, "FC: " _YELLOW_("%u") " CN: " _YELLOW_("%"PRIu64) " CSN: " _YELLOW_("%s"),
|
||||||
card.FacilityCode, card.CardNumber, sprint_hex(csn, 8));
|
card.FacilityCode,
|
||||||
|
card.CardNumber,
|
||||||
|
sprint_hex(csn, 8)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
tagsim_rawmode_exit();
|
tagsim_rawmode_exit();
|
||||||
|
|||||||
@@ -7256,10 +7256,11 @@ int CmdHFMFNDEFRead(const char *Cmd) {
|
|||||||
int res = MADCheck(§or0, pmad2, verbose, &haveMAD2);
|
int res = MADCheck(§or0, pmad2, verbose, &haveMAD2);
|
||||||
if (res != PM3_SUCCESS) {
|
if (res != PM3_SUCCESS) {
|
||||||
PrintAndLogEx(ERR, "MAD error %d", res);
|
PrintAndLogEx(ERR, "MAD error %d", res);
|
||||||
if (override)
|
if (override) {
|
||||||
PrintAndLogEx(INFO, "overriding CRC check");
|
PrintAndLogEx(INFO, "overriding CRC check");
|
||||||
else
|
} else {
|
||||||
return res;
|
return res;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mad_entry_list_t mad_list = {0};
|
mad_entry_list_t mad_list = {0};
|
||||||
@@ -7282,7 +7283,7 @@ int CmdHFMFNDEFRead(const char *Cmd) {
|
|||||||
memcpy(&data[datalen], vsector, MFBLOCK_SIZE * 3);
|
memcpy(&data[datalen], vsector, MFBLOCK_SIZE * 3);
|
||||||
datalen += MFBLOCK_SIZE * 3;
|
datalen += MFBLOCK_SIZE * 3;
|
||||||
|
|
||||||
PrintAndLogEx(INPLACE, "%d", i);
|
PrintAndLogEx(INPLACE, "%zu", i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
|
|||||||
@@ -2843,7 +2843,7 @@ int CmdHFMFPNDEFRead(const char *Cmd) {
|
|||||||
memcpy(&data[datalen], vsector, 16 * 3);
|
memcpy(&data[datalen], vsector, 16 * 3);
|
||||||
datalen += 16 * 3;
|
datalen += 16 * 3;
|
||||||
|
|
||||||
PrintAndLogEx(INPLACE, "%d", i);
|
PrintAndLogEx(INPLACE, "%zu", i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
|
|||||||
Reference in new issue
Block a user