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

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

commit 045a06b878c3a7026c811baf2cf39ed445dbe3a3
Author: zhangyuan29 <[email protected]>
AuthorDate: Tue May 13 12:00:46 2025 +0800

    arch/tricore: change PRIuPTR to lu
    
    Fixed the modlib build issue:
    nuttx/libs/libc/modlib/modlib_bind.c:365:20: error:
    format '%u' expects argument of type 'unsigned int',
    but argument 5 has type 'long unsigned int'.
    
    Signed-off-by: zhangyuan29 <[email protected]>
---
 arch/tricore/include/inttypes.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/tricore/include/inttypes.h b/arch/tricore/include/inttypes.h
index 5e762312f1f..adf0d8ab910 100644
--- a/arch/tricore/include/inttypes.h
+++ b/arch/tricore/include/inttypes.h
@@ -62,7 +62,7 @@
 #define PRIu32      "lu"
 #define PRIu64      "llu"
 
-#define PRIuPTR     "u"
+#define PRIuPTR     "lu"
 
 #define PRIx8       "x"
 #define PRIx16      "x"

Reply via email to