You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/12/06 13:42:13 UTC

[incubator-nuttx] 23/27: arch/arm/src/s32k1xx/s32k1xx_lpi2c.c: Fix syslog formats

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit cba6e69ccf59e914653adce3a50413c475f40961
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Sun Dec 6 18:56:50 2020 +0900

    arch/arm/src/s32k1xx/s32k1xx_lpi2c.c: Fix syslog formats
---
 arch/arm/src/s32k1xx/s32k1xx_lpi2c.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c b/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c
index 2eb9f19..0c9e487 100644
--- a/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c
+++ b/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c
@@ -40,6 +40,7 @@
 #include <nuttx/config.h>
 
 #include <sys/types.h>
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
@@ -754,7 +755,7 @@ static inline void
    * still pending.
    */
 
-  i2cinfo("Timeout with Status Register: %x\n", regval);
+  i2cinfo("Timeout with Status Register: %" PRIx32 "\n", regval);
 }
 
 /****************************************************************************
@@ -1606,7 +1607,7 @@ static int s32k1xx_lpi2c_transfer(FAR struct i2c_master_s *dev,
     {
       ret = -ETIMEDOUT;
 
-      i2cerr("ERROR: Timed out: MCR: status: 0x%x\n", priv->status);
+      i2cerr("ERROR: Timed out: MCR: status: 0x%" PRIx32 "\n", priv->status);
     }
 
   /* Check for error status conditions */