From d2a2d63854b96ca266c40583970c86e59434050a Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 7 Aug 2026 13:07:17 +0200 Subject: [PATCH] Fix CodeQL warning on printf --- client/src/cmdhw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhw.c b/client/src/cmdhw.c index 4543496c2..0d5747681 100644 --- a/client/src/cmdhw.c +++ b/client/src/cmdhw.c @@ -1830,8 +1830,8 @@ static int CmdDeviceFactoryData(const char *Cmd) { } if (datalen != resp.length) { - PrintAndLogEx(WARNING, _RED_("The length of the data to write (%d) does not match the length " - "of the factory data read from device (%d)."), datalen, resp.length); + PrintAndLogEx(WARNING, _RED_("The length of the data to write (%zu) does not match the length " + "of the factory data read from device (%u)."), datalen, (unsigned int)resp.length); free(data); return PM3_EINVARG; }