mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-04 03:58:08 +08:00
Remove duplicated block print in verbose mode in hf mf view
This commit is contained in:
parent
717ceecf1f
commit
2d930f921a
1 changed files with 6 additions and 6 deletions
|
@ -326,16 +326,16 @@ static void mf_print_block(uint8_t blockno, uint8_t *d, bool verbose) {
|
|||
}
|
||||
} else {
|
||||
|
||||
int32_t value = 0;
|
||||
if (verbose && mfc_value(d, &value)) {
|
||||
PrintAndLogEx(INFO, "%s| %3d | " _CYAN_("%s") " %"PRIi32, secstr, blockno, sprint_hex_ascii(d, MFBLOCK_SIZE), value);
|
||||
}
|
||||
|
||||
if (blockno >= MIFARE_1K_MAXBLOCK) {
|
||||
// MFC Ev1 signature blocks.
|
||||
PrintAndLogEx(INFO, _BACK_BLUE_("%s| %3d | %s"), secstr, blockno, sprint_hex_ascii(d, MFBLOCK_SIZE));
|
||||
} else {
|
||||
PrintAndLogEx(INFO, "%s| %3d | %s", secstr, blockno, sprint_hex_ascii(d, MFBLOCK_SIZE));
|
||||
int32_t value = 0;
|
||||
if (verbose && mfc_value(d, &value)) {
|
||||
PrintAndLogEx(INFO, "%s| %3d | " _CYAN_("%s") " %"PRIi32, secstr, blockno, sprint_hex_ascii(d, MFBLOCK_SIZE), value);
|
||||
} else {
|
||||
PrintAndLogEx(INFO, "%s| %3d | %s", secstr, blockno, sprint_hex_ascii(d, MFBLOCK_SIZE));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue