chg: 'hf iclass' textual

This commit is contained in:
iceman1001 2018-01-09 16:31:54 +01:00
commit 2b093f8059

View file

@ -609,7 +609,7 @@ int CmdHFiClassELoad(const char *Cmd) {
static int readKeyfile(const char *filename, size_t len, uint8_t* buffer) {
FILE *f = fopen(filename, "rb");
if (!f) {
PrintAndLog("Failed to read from file '%s'", filename);
PrintAndLog("[!] Failed to read from file '%s'", filename);
return 1;
}
fseek(f, 0, SEEK_END);
@ -619,12 +619,12 @@ static int readKeyfile(const char *filename, size_t len, uint8_t* buffer) {
fclose(f);
if (fsize != len) {
PrintAndLog("Warning, file size is %d, expected %d", fsize, len);
PrintAndLog("[!] Warning, file size is %d, expected %d", fsize, len);
return 1;
}
if (bytes_read != len) {
PrintAndLog("Warning, could only read %d bytes, expected %d" ,bytes_read, len);
PrintAndLog("[!] Warning, could only read %d bytes, expected %d" ,bytes_read, len);
return 1;
}
return 0;