arch/arm/src/samv7/sam_twihs.c: Fix syslog formats
This commit is contained in:
parent
bcb0231add
commit
20f353af89
|
@ -49,6 +49,7 @@
|
|||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <errno.h>
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue