drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c: Fix a printf format warning
This commit is contained in:
parent
950fff8e66
commit
320b7131e0
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user