From 7a5e654309b0f993338c3c9739dc8515394f632a Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 25 Jun 2020 23:56:38 +0200 Subject: [PATCH] hardcoded values --- utils/nfc-mfclassic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c index 28e4a1b..6b9366f 100644 --- a/utils/nfc-mfclassic.c +++ b/utils/nfc-mfclassic.c @@ -644,7 +644,7 @@ static bool is_directwrite(bool test_write) printf(" Original UID: %02x%02x%02x%02x\n", original_b0[0], original_b0[1], original_b0[2], original_b0[3]); } else { - printf("!\nError: unable to read block 0x%02x\n", 0); + printf("!\nError: unable to read block 0x00\n"); return false; } @@ -654,7 +654,7 @@ static bool is_directwrite(bool test_write) printf(" Attempt to write Block 0 ...\n"); memcpy(mp.mpd.abtData, original_b0, sizeof(original_b0)); if (!nfc_initiator_mifare_cmd(pnd, MC_WRITE, 0, &mp)) { - printf("Failure to write to data block %i\n", 0); + printf("Failure to write to data block 0\n"); return false; } printf(" Block 0 written successfully\n");