make style

This commit is contained in:
pingu2211 2024-11-13 11:13:15 +11:00
commit 11becb8e20
3 changed files with 43 additions and 43 deletions

View file

@ -5032,7 +5032,7 @@ static int CmdHF14AMfECFill(const char *Cmd) {
t1 = msclock() - t1; t1 = msclock() - t1;
if (resp.status == PM3_SUCCESS) if (resp.status == PM3_SUCCESS)
PrintAndLogEx(SUCCESS, "Fill ( " _GREEN_("ok") " ) in " _YELLOW_("%" PRIu64 ) " ms", t1); PrintAndLogEx(SUCCESS, "Fill ( " _GREEN_("ok") " ) in " _YELLOW_("%" PRIu64) " ms", t1);
else else
PrintAndLogEx(FAILED, "Fill ( " _RED_("fail") " )"); PrintAndLogEx(FAILED, "Fill ( " _RED_("fail") " )");
@ -10036,7 +10036,7 @@ static int CmdHF14AMfISEN(const char *Cmd) {
free(dump); free(dump);
} }
t1 = msclock() - t1; t1 = msclock() - t1;
PrintAndLogEx(SUCCESS, "time: " _YELLOW_("%" PRIu64 ) " ms", t1); PrintAndLogEx(SUCCESS, "time: " _YELLOW_("%" PRIu64) " ms", t1);
if (fnlen == 0) { if (fnlen == 0) {
snprintf(filename, sizeof(filename), "hf-mf-%s-nonces%s", sprint_hex_inrow(card.uid, card.uidlen), collect_fm11rf08s_with_data ? "_with_data" : ""); snprintf(filename, sizeof(filename), "hf-mf-%s-nonces%s", sprint_hex_inrow(card.uid, card.uidlen), collect_fm11rf08s_with_data ? "_with_data" : "");

View file

@ -1014,12 +1014,12 @@ int mf_write_block(uint8_t blockno, uint8_t keyType, const uint8_t *key, uint8_t
return res; return res;
} }
int mf_write_sector(uint8_t sectorNo, uint8_t keyType, const uint8_t *key, uint8_t *sector){ int mf_write_sector(uint8_t sectorNo, uint8_t keyType, const uint8_t *key, uint8_t *sector) {
int res; int res;
for (int i=0;i<4; i++){ for (int i = 0; i < 4; i++) {
res = mf_write_block((sectorNo*4)+i, keyType, key, sector+(i*MFBLOCK_SIZE)); res = mf_write_block((sectorNo * 4) + i, keyType, key, sector + (i * MFBLOCK_SIZE));
if (res != PM3_SUCCESS){ if (res != PM3_SUCCESS) {
return (i==0)?PM3_EFAILED:PM3_EPARTIAL; return (i == 0) ? PM3_EFAILED : PM3_EPARTIAL;
} }
} }
return PM3_SUCCESS; return PM3_SUCCESS;