Rename prnlog() to PrintfAndLog()

This commit is contained in:
Brian Pow 2018-02-13 00:12:50 +08:00
commit 8f9c81ae81
7 changed files with 101 additions and 101 deletions

View file

@ -626,14 +626,14 @@ int CmdHFiClassELoad(const char *Cmd) {
fseek(f, 0, SEEK_SET);
if (fsize < 0) {
prnlog("[-] error, when getting filesize");
PrintfAndLog("[-] error, when getting filesize");
fclose(f);
return 1;
}
uint8_t *dump = malloc(fsize);
if (!dump) {
prnlog("[-] error, cannot allocate memory ");
PrintfAndLog("[-] error, cannot allocate memory ");
fclose(f);
return 1;
}
@ -645,7 +645,7 @@ int CmdHFiClassELoad(const char *Cmd) {
//Validate
if (bytes_read < fsize) {
prnlog("[-] error, could only read %d bytes (should be %d)", bytes_read, fsize );
PrintfAndLog("[-] error, could only read %d bytes (should be %d)", bytes_read, fsize );
free(dump);
return 1;
}
@ -1545,7 +1545,7 @@ int CmdHFiClass_loclass(const char *Cmd) {
errors += testMAC();
errors += doKeyTests(0);
errors += testElite();
if (errors) prnlog("[!] There were errors!!!");
if (errors) PrintfAndLog("[!] There were errors!!!");
return errors;
}
return 0;