You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/11/20 13:35:03 UTC

[incubator-nuttx] 11/26: Fix chip/s32k3xx_fs26.c:249:31: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')

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

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

commit 987d2561c0e732a9da28b1d13ab177e52d3f0b79
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Nov 19 12:33:09 2022 +0800

    Fix chip/s32k3xx_fs26.c:249:31: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/arm/src/s32k3xx/s32k3xx_fs26.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/src/s32k3xx/s32k3xx_fs26.c b/arch/arm/src/s32k3xx/s32k3xx_fs26.c
index 2acf7c2d2a..e1c93a7652 100644
--- a/arch/arm/src/s32k3xx/s32k3xx_fs26.c
+++ b/arch/arm/src/s32k3xx/s32k3xx_fs26.c
@@ -246,7 +246,7 @@ uint32_t fs26_setreg(struct fs26_dev_s *priv, uint8_t regaddr,
   retval = __builtin_bswap32(retval);
 #endif
 
-  spiinfo("Received %08lx\n", retval);
+  spiinfo("Received %08" PRIx32 "\n", retval);
 
   if (fs26_calcrc((uint8_t *)&retval, 3) != ((uint8_t *)&retval)[0])
     {
@@ -316,7 +316,7 @@ uint32_t fs26_getreg(struct fs26_dev_s *priv, uint8_t regaddr)
 
   /* DEBUG print */
 
-  spiinfo("%02x->%04lx\n", regaddr, retval);
+  spiinfo("%02x->%04" PRIx32 "\n", regaddr, retval);
 
   return retval;
 }
@@ -423,7 +423,7 @@ void fs26_initialize(struct spi_dev_s *spi)
   if ((FS26_GET_DATA(retval) & (ABIST1_PASS_MASK | LBIST_STATUS_MASK))
       != (ABIST1_PASS | LBIST_STATUS_OK))
     {
-      spierr("FS26 DIAG failed %08lx\n", retval);
+      spierr("FS26 DIAG failed %08" PRIx32 "\n", retval);
     }
 
   /* Get state machine state */