From 2b093f805944a66498a95d0bc68a664940e003da Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 9 Jan 2018 16:31:54 +0100 Subject: [PATCH] chg: 'hf iclass' textual --- client/cmdhficlass.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 0c79319c0..1030a53d5 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -608,8 +608,8 @@ 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); + if (!f) { + PrintAndLog("[!] Failed to read from file '%s'", filename); return 1; } fseek(f, 0, SEEK_END); @@ -618,13 +618,13 @@ static int readKeyfile(const char *filename, size_t len, uint8_t* buffer) { size_t bytes_read = fread(buffer, 1, len, f); fclose(f); - if(fsize != len) { - PrintAndLog("Warning, file size is %d, expected %d", fsize, len); + if (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); + if (bytes_read != len) { + PrintAndLog("[!] Warning, could only read %d bytes, expected %d" ,bytes_read, len); return 1; } return 0;