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 2022/07/29 09:41:30 UTC

[incubator-nuttx] branch master updated: w25qxxxjv.c: Use PRIxOFF to format off_t

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


The following commit(s) were added to refs/heads/master by this push:
     new 4ab8f9383d w25qxxxjv.c: Use PRIxOFF to format off_t
4ab8f9383d is described below

commit 4ab8f9383d1bda8e3b9efeea43df5dc00cbea875
Author: Michael Jung <mi...@secore.ly>
AuthorDate: Fri Jul 29 09:22:09 2022 +0200

    w25qxxxjv.c: Use PRIxOFF to format off_t
    
    Signed-off-by: Michael Jung <mi...@secore.ly>
---
 drivers/mtd/w25qxxxjv.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/w25qxxxjv.c b/drivers/mtd/w25qxxxjv.c
index b84fb9f971..ad331edcd7 100644
--- a/drivers/mtd/w25qxxxjv.c
+++ b/drivers/mtd/w25qxxxjv.c
@@ -34,6 +34,7 @@
 #include <assert.h>
 #include <errno.h>
 #include <debug.h>
+#include <inttypes.h>
 
 #include <nuttx/kmalloc.h>
 #include <nuttx/signal.h>
@@ -1006,8 +1007,8 @@ static int w25qxxxjv_write_page(struct w25qxxxjv_dev_s *priv,
 
       if (ret < 0)
         {
-          ferr("ERROR: QSPI_MEMORY failed writing address=%06jx\n",
-               (uintmax_t)address);
+          ferr("ERROR: QSPI_MEMORY failed writing address=%06"PRIxOFF"\n",
+               address);
           return ret;
         }