From 07bf77e155ca06a2a4d10e9c7cb552a5827577b7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 3 Dec 2017 15:58:37 +0100 Subject: [PATCH] fix: 'hf mfu restore' - printed too many bytes. 8 -> 4 --- client/cmdhfmfu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/cmdhfmfu.c b/client/cmdhfmfu.c index 93d5bb3c8..3f8982997 100644 --- a/client/cmdhfmfu.c +++ b/client/cmdhfmfu.c @@ -2042,7 +2042,7 @@ int CmdHF14AMfURestore(const char *Cmd){ memcpy(c.d.asBytes, p_authkey, 4 ); } - printf("special PWD block written 0x%X - %s\n", MFU_NTAG_SPECIAL_PWD, sprint_hex(c.d.asBytes, 8)); + printf("special PWD block written 0x%X - %s\n", MFU_NTAG_SPECIAL_PWD, sprint_hex(c.d.asBytes, 4)); clearCommandBuffer(); SendCommand(&c); wait4response(MFU_NTAG_SPECIAL_PWD); @@ -2059,7 +2059,7 @@ int CmdHF14AMfURestore(const char *Cmd){ c.d.asBytes[1] = mem->pack[1]; c.d.asBytes[2] = 0; c.d.asBytes[3] = 0; - printf("special PACK block written 0x%X - %s\n", MFU_NTAG_SPECIAL_PACK, sprint_hex(c.d.asBytes, 8)); + printf("special PACK block written 0x%X - %s\n", MFU_NTAG_SPECIAL_PACK, sprint_hex(c.d.asBytes, 4)); clearCommandBuffer(); SendCommand(&c); wait4response(MFU_NTAG_SPECIAL_PACK); @@ -2068,7 +2068,7 @@ int CmdHF14AMfURestore(const char *Cmd){ for (uint8_t s = MFU_NTAG_SPECIAL_SIGNATURE, i=0; s < MFU_NTAG_SPECIAL_SIGNATURE+8; s++, i += 4){ c.arg[0] = s; memcpy(c.d.asBytes, mem->signature+i, 4); - printf("special SIG block written 0x%X - %s\n", s, sprint_hex(c.d.asBytes, 8) ); + printf("special SIG block written 0x%X - %s\n", s, sprint_hex(c.d.asBytes, 4) ); clearCommandBuffer(); SendCommand(&c); wait4response(s); @@ -2078,7 +2078,7 @@ int CmdHF14AMfURestore(const char *Cmd){ for (uint8_t s = MFU_NTAG_SPECIAL_VERSION, i=0; s < MFU_NTAG_SPECIAL_VERSION+2; s++, i += 4){ c.arg[0] = s; memcpy(c.d.asBytes, mem->version+i, 4 ); - printf("special VERSION block written 0x%X - %s\n", s, sprint_hex(c.d.asBytes, 8) ); + printf("special VERSION block written 0x%X - %s\n", s, sprint_hex(c.d.asBytes, 4) ); clearCommandBuffer(); SendCommand(&c); wait4response(s); @@ -2118,7 +2118,7 @@ int CmdHF14AMfURestore(const char *Cmd){ clearCommandBuffer(); SendCommand(&c); wait4response(b); - printf("special block written %u - %s\n", b, sprint_hex(c.d.asBytes, 8) ); + printf("special block written %u - %s\n", b, sprint_hex(c.d.asBytes, 4) ); } }