Rename prnlog() to PrintfAndLog()

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

View File

@@ -264,7 +264,7 @@ void doMAC_N(uint8_t *address_data_p, uint8_t address_data_size, uint8_t *div_ke
#ifndef ON_DEVICE
int testMAC()
{
prnlog("[+] Testing MAC calculation...");
PrintfAndLog("[+] Testing MAC calculation...");
//From the "dismantling.IClass" paper:
uint8_t cc_nr[] = {0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0,0,0,0};
@@ -277,11 +277,11 @@ int testMAC()
if(memcmp(calculated_mac, correct_MAC,4) == 0)
{
prnlog("[+] MAC calculation OK!");
PrintfAndLog("[+] MAC calculation OK!");
}else
{
prnlog("[+] FAILED: MAC calculation failed:");
PrintfAndLog("[+] FAILED: MAC calculation failed:");
printarr(" Calculated_MAC", calculated_mac, 4);
printarr(" Correct_MAC ", correct_MAC, 4);
return 1;