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 #include +#include #include #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));