From 20f353af89e7a20d58b1a35c5fc4cab7bfdf9f04 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 2 Dec 2020 07:00:24 +0900 Subject: [PATCH] arch/arm/src/samv7/sam_twihs.c: Fix syslog formats --- arch/arm/src/samv7/sam_twihs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }