From 320b7131e0cffd9ed07e9e0ca742f5ffd53f8a79 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi <yamamoto@midokura.com> Date: Fri, 13 Nov 2020 17:39:00 +0900 Subject: [PATCH] drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c: Fix a printf format warning --- drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c b/drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c index 8ccfcdad8c..7cae957de1 100644 --- a/drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c +++ b/drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c @@ -43,6 +43,7 @@ #include <assert.h> #include <debug.h> +#include <inttypes.h> #include <stdio.h> #include "mrf24j40.h" @@ -175,7 +176,7 @@ int mrf24j40_regdump(FAR struct mrf24j40_radio_s *dev) { if ((i & 15) == 0) { - len = sprintf(buf, "%02x: ", i & 0xff); + len = sprintf(buf, "%02" PRIx32 ": ", i & 0xff); } len += sprintf(buf + len, "%02x ", mrf24j40_getreg(dev->spi, i));