diff --git a/client/emv/emv_pk.c b/client/emv/emv_pk.c index ae23c8470..b03567440 100644 --- a/client/emv/emv_pk.c +++ b/client/emv/emv_pk.c @@ -24,7 +24,7 @@ #include "emv_pk.h" #include "crypto.h" #include "proxmark3.h" - +#include "util.h" #include #include #include @@ -398,7 +398,7 @@ static struct emv_pk *emv_pk_get_ca_pk_from_file(const char *fname, FILE *f = fopen(fname, "r"); if (!f) { - perror("fopen"); + PrintAndLogEx(ERR, "Error: can't open file %s.", fname); return NULL; } diff --git a/client/flash.c b/client/flash.c index 5b4cd205e..e41b47fb0 100644 --- a/client/flash.c +++ b/client/flash.c @@ -192,7 +192,6 @@ int flash_load(flash_file_t *ctx, const char *name, int can_write_bl) { fd = fopen(name, "rb"); if (!fd) { PrintAndLogEx(ERR, _RED_("Could not open file") "%s >>> ", name); - perror(NULL); goto fail; } diff --git a/uart/uart_posix.c b/uart/uart_posix.c index 93b7229ce..22cc75207 100644 --- a/uart/uart_posix.c +++ b/uart/uart_posix.c @@ -238,7 +238,7 @@ void uart_close(const serial_port sp) { // Does the system allows us to place a lock on this file descriptor int err = fcntl(spu->fd, F_SETLK, &fl); if (err == -1) { - //perror("fcntl"); + printf("[!] UART error while closing port\n"); } close(spu->fd); free(sp);