diff --git a/arch/arm/src/samv7/sam_twihs.c b/arch/arm/src/samv7/sam_twihs.c index 37bea67c43..76e9a90c45 100644 --- a/arch/arm/src/samv7/sam_twihs.c +++ b/arch/arm/src/samv7/sam_twihs.c @@ -49,6 +49,7 @@ #include #include +#include #include #include #include @@ -580,7 +581,7 @@ static int twi_interrupt(int irq, FAR void *context, FAR void *arg) imr = twi_getrel(priv, SAM_TWIHS_IMR_OFFSET); pending = sr & imr; - i2cinfo("TWIHS%d pending: %08x\n", priv->attr->twi, pending); + i2cinfo("TWIHS%d pending: %08" PRIx32 "\n", priv->attr->twi, pending); /* Byte received */ @@ -669,7 +670,8 @@ static int twi_interrupt(int irq, FAR void *context, FAR void *arg) { /* Wake up the thread with an I/O error indication */ - i2cerr("ERROR: TWIHS%d pending: %08x\n", priv->attr->twi, pending); + i2cerr("ERROR: TWIHS%d pending: %08" PRIx32 "\n", + priv->attr->twi, pending); twi_wakeup(priv, -EIO); }