X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d6e1d482844d6979533250dedc3724ce14f80294..d3f8d76d6c157e7ffc8cf03536f73c30fe2ab561:/client/cmdhfmf.c?ds=sidebyside diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 33790230..91f73ca2 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -677,7 +677,7 @@ int CmdHF14AMfNested(const char *Cmd) { // check if we can authenticate to sector res = mfCheckKeys(blockNo, keyType, timeout14a, true, 1, key, &key64); if (res) { - PrintAndLog("Can't authenticate to block:%3d key type:%c key:%s", blockNo, keyType?'B':'A', sprint_hex(key, 6)); + PrintAndLog("Can't authenticate to block %d, key type %c, key %s", blockNo, keyType?'B':'A', sprint_hex(key, 6)); return 3; } @@ -3076,8 +3076,8 @@ int CmdHFMFPersonalize(const char *cmd) { UsbCommand resp; if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) { - uint8_t isOK = resp.arg[0] & 0xff; - PrintAndLog("Personalization %s", isOK ? "FAILED" : "SUCCEEDED"); + bool isOK = resp.arg[0]; + PrintAndLog("Personalization %s", isOK ? "SUCCEEDED" : "FAILED"); } else { PrintAndLog("Command execute timeout"); }