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 2021/07/26 15:44:12 UTC

[incubator-nuttx] branch master updated: renesas/rx65n: add long type for all PRI*PTR

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 5029712  renesas/rx65n: add long type for all PRI*PTR
5029712 is described below

commit 5029712283a0088122610910520c645e9c251c30
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Fri Jul 2 22:32:14 2021 +0800

    renesas/rx65n: add long type for all PRI*PTR
    
    Error: wqueue/kwork_thread.c:202:3: error: format '%x' expects argument of type 'unsigned int',
     but argument 4 has type 'long unsigned int' [-Werror=format=]
        snprintf(args, 16, "0x%" PRIxPTR, (uintptr_t)wqueue);
    
    Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
 arch/renesas/include/rx65n/inttypes.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/arch/renesas/include/rx65n/inttypes.h b/arch/renesas/include/rx65n/inttypes.h
index 47e30b5..2f71476 100644
--- a/arch/renesas/include/rx65n/inttypes.h
+++ b/arch/renesas/include/rx65n/inttypes.h
@@ -30,77 +30,77 @@
 #define PRId32      "ld"
 #define PRId64      "lld"
 
-#define PRIdPTR     "d"
+#define PRIdPTR     "ld"
 
 #define PRIi8       "i"
 #define PRIi16      "i"
 #define PRIi32      "li"
 #define PRIi64      "lli"
 
-#define PRIiPTR     "i"
+#define PRIiPTR     "li"
 
 #define PRIo8       "o"
 #define PRIo16      "o"
 #define PRIo32      "lo"
 #define PRIo64      "llo"
 
-#define PRIoPTR     "o"
+#define PRIoPTR     "lo"
 
 #define PRIu8       "u"
 #define PRIu16      "u"
 #define PRIu32      "lu"
 #define PRIu64      "llu"
 
-#define PRIuPTR     "u"
+#define PRIuPTR     "lu"
 
 #define PRIx8       "x"
 #define PRIx16      "x"
 #define PRIx32      "lx"
 #define PRIx64      "llx"
 
-#define PRIxPTR     "x"
+#define PRIxPTR     "lx"
 
 #define PRIX8       "X"
 #define PRIX16      "X"
 #define PRIX32      "lX"
 #define PRIX64      "llX"
 
-#define PRIXPTR     "X"
+#define PRIXPTR     "lX"
 
 #define SCNd8       "hhd"
 #define SCNd16      "hd"
 #define SCNd32      "ld"
 #define SCNd64      "lld"
 
-#define SCNdPTR     "d"
+#define SCNdPTR     "ld"
 
 #define SCNi8       "hhi"
 #define SCNi16      "hi"
 #define SCNi32      "li"
 #define SCNi64      "lli"
 
-#define SCNiPTR     "i"
+#define SCNiPTR     "li"
 
 #define SCNo8       "hho"
 #define SCNo16      "ho"
 #define SCNo32      "lo"
 #define SCNo64      "llo"
 
-#define SCNoPTR     "o"
+#define SCNoPTR     "lo"
 
 #define SCNu8       "hhu"
 #define SCNu16      "hu"
 #define SCNu32      "lu"
 #define SCNu64      "llu"
 
-#define SCNuPTR     "u"
+#define SCNuPTR     "lu"
 
 #define SCNx8       "hhx"
 #define SCNx16      "hx"
 #define SCNx32      "lx"
 #define SCNx64      "llx"
 
-#define SCNxPTR     "x"
+#define SCNxPTR     "lx"
 
 #define INT8_C(x)   x
 #define INT16_C(x)  x