From 97ef641fad7227926789f96cc27463e732cd16f7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 6 Apr 2020 07:29:39 +0200 Subject: [PATCH] coverity fix, format specifier --- client/cmdhficlass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 72a7eaad2..c3042d874 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -2050,7 +2050,7 @@ static int CmdHFiClassReadTagFile(const char *Cmd) { if (verbose) { PrintAndLogEx(INFO, "File: " _YELLOW_("%s"), filename); - PrintAndLogEx(INFO, "File size %d bytes, file blocks %d (0x%02x)", bytes_read, bytes_read >> 3, bytes_read >> 3); + PrintAndLogEx(INFO, "File size %zu bytes, file blocks %d (0x%x)", bytes_read, (uint16_t)(bytes_read >> 3), (uint16_t)(bytes_read >> 3)); PrintAndLogEx(INFO, "Printing blocks from"); PrintAndLogEx(INFO, "start " _YELLOW_("0x%02x") "end " _YELLOW_("0x%02x"), (startblock == 0) ? 6 : startblock, endblock); }