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

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

commit 5da2752094ddafb51b8eac9ed9da775169932e30
Author: yangsong8 <[email protected]>
AuthorDate: Sun Nov 22 16:22:32 2026 +0800

    drivers/devicetree/fdt_cfi: print uintptr_t with PRIxPTR
    
    flash_base and flash_end are uintptr_t, so print them with PRIxPTR
    instead of %zx, which is meant for size_t.  No change in the output on
    the current targets.
    
    Assisted-by: Kiro:claude-opus-5-5
    Signed-off-by: yangsong8 <[email protected]>
---
 drivers/devicetree/fdt_cfi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/devicetree/fdt_cfi.c b/drivers/devicetree/fdt_cfi.c
index a2bbcac2250..fbbd1260b65 100644
--- a/drivers/devicetree/fdt_cfi.c
+++ b/drivers/devicetree/fdt_cfi.c
@@ -23,6 +23,7 @@
  ****************************************************************************/
 
 #include <errno.h>
+#include <inttypes.h>
 #include <nuttx/debug.h>
 
 #include <nuttx/config.h>
@@ -90,7 +91,7 @@ int fdt_cfi_register(FAR const void *fdt)
           else
             {
               ferr("cfi flash%zu has been used to store text:"
-                   "[%zx,%zx], flash:[%x,%x]\n",
+                   "[%" PRIxPTR ",%" PRIxPTR "], flash:[%x,%x]\n",
                    i, flash_base, flash_end,
                    CONFIG_FLASH_START, CONFIG_FLASH_START +
                    CONFIG_FLASH_SIZE);

Reply via email to