From bc0f90659ff6246d7dbc89c86c8d40b7827607e4 Mon Sep 17 00:00:00 2001 From: Tim Hardisty <56726697+TimJTi@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:08:14 +0100 Subject: [PATCH] Fix cdcncm printf formatter compiler warning --- drivers/usbdev/cdcncm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usbdev/cdcncm.c b/drivers/usbdev/cdcncm.c index 981275bdcb..e9d1c773d2 100644 --- a/drivers/usbdev/cdcncm.c +++ b/drivers/usbdev/cdcncm.c @@ -1073,7 +1073,7 @@ static void cdcncm_receive(FAR struct cdcncm_driver_s *self) if ((ndplen < opts->ndpsize + 2 * (opts->dgramitemlen * 2)) || (ndplen % opts->ndpalign != 0)) { - uerr("Bad NDP length: %x\n", ndplen); + uerr("Bad NDP length: %04" PRIx32 " \n", ndplen); return; }