drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 15:05:10 +09:00 committed by Xiang Xiao
parent be76d43e25
commit 9a7de336d0

View File

@ -158,7 +158,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));