mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
Rename prnlog() to PrintfAndLog()
This commit is contained in:
parent
8b00d6c121
commit
8f9c81ae81
7 changed files with 101 additions and 101 deletions
|
@ -169,7 +169,7 @@ void printarr(char * name, uint8_t* arr, int len)
|
|||
cx += snprintf(output+cx,outsize-cx,"0x%02x,",*(arr+i));//5 bytes per byte
|
||||
}
|
||||
cx += snprintf(output+cx,outsize-cx,"};");
|
||||
prnlog(output);
|
||||
PrintfAndLog(output);
|
||||
free(output);
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,7 @@ void printvar(char * name, uint8_t* arr, int len)
|
|||
cx += snprintf(output+cx,outsize-cx,"%02x",*(arr+i));//2 bytes per byte
|
||||
}
|
||||
|
||||
prnlog(output);
|
||||
PrintfAndLog(output);
|
||||
free(output);
|
||||
}
|
||||
|
||||
|
@ -207,7 +207,7 @@ void printarr_human_readable(char * title, uint8_t* arr, int len)
|
|||
cx += snprintf(output+cx,outsize-cx,"\n%02x| ", i );
|
||||
cx += snprintf(output+cx,outsize-cx, "%02x ",*(arr+i));
|
||||
}
|
||||
prnlog(output);
|
||||
PrintfAndLog(output);
|
||||
free(output);
|
||||
}
|
||||
|
||||
|
@ -231,14 +231,14 @@ int testBitStream()
|
|||
}
|
||||
if(memcmp(input, output, sizeof(input)) == 0)
|
||||
{
|
||||
prnlog(" Bitstream test 1 ok");
|
||||
PrintfAndLog(" Bitstream test 1 ok");
|
||||
}else
|
||||
{
|
||||
prnlog(" Bitstream test 1 failed");
|
||||
PrintfAndLog(" Bitstream test 1 failed");
|
||||
uint8_t i;
|
||||
for(i = 0 ; i < sizeof(input) ; i++)
|
||||
{
|
||||
prnlog(" IN %02x, OUT %02x", input[i], output[i]);
|
||||
PrintfAndLog(" IN %02x, OUT %02x", input[i], output[i]);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
@ -265,14 +265,14 @@ int testReversedBitstream()
|
|||
}
|
||||
if(memcmp(input, output, sizeof(input)) == 0)
|
||||
{
|
||||
prnlog(" Bitstream test 2 ok");
|
||||
PrintfAndLog(" Bitstream test 2 ok");
|
||||
}else
|
||||
{
|
||||
prnlog(" Bitstream test 2 failed");
|
||||
PrintfAndLog(" Bitstream test 2 failed");
|
||||
uint8_t i;
|
||||
for(i = 0 ; i < sizeof(input) ; i++)
|
||||
{
|
||||
prnlog(" IN %02x, MIDDLE: %02x, OUT %02x", input[i],reverse[i], output[i]);
|
||||
PrintfAndLog(" IN %02x, MIDDLE: %02x, OUT %02x", input[i],reverse[i], output[i]);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
@ -282,7 +282,7 @@ int testReversedBitstream()
|
|||
|
||||
int testCipherUtils(void)
|
||||
{
|
||||
prnlog("[+] Testing some internals...");
|
||||
PrintfAndLog("[+] Testing some internals...");
|
||||
int retval = 0;
|
||||
retval |= testBitStream();
|
||||
retval |= testReversedBitstream();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue