// OUT-OF-BOUNDS check
if ( len + offset > MAX_LENGTH ) {
len = MAX_LENGTH - offset;
- PrintAndLog("Out-of-bound, shorten len to %d (0x%02X)", len);
+ PrintAndLog("Out-of-bound, shorten len to %d (0x%02X)", len, len);
}
if ( (IV & 0x7F) != IV ){
return 1;
}
- PrintAndLog("\nData");
- PrintAndLog("-----------------------------");
+ PrintAndLog("\n ## | Data");
+ PrintAndLog("-----+-----");
print_hex_break( data, readlen, 32);
} else {
PrintAndLog("failed reading tag");
// OUT-OF-BOUNDS check
if ( len + offset > MAX_LENGTH ) {
len = MAX_LENGTH - offset;
- PrintAndLog("Out-of-bound, shorten len to %d (0x%02X)", len);
+ PrintAndLog("Out-of-bound, shorten len to %d (0x%02X)", len, len);
}
if ( (IV & 0x7F) != IV ){
IV &= 0x7F;