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

xiaoxiang pushed a commit to branch releases/12.12
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/12.12 by this push:
     new 6aa8e1dfe78 sched/misc: correct coredump log format
6aa8e1dfe78 is described below

commit 6aa8e1dfe782b6a7605a07a16c71255bb9007546
Author: Junbo Zheng <[email protected]>
AuthorDate: Thu Dec 11 19:17:30 2025 +0800

    sched/misc: correct coredump log format
    
    since it has been replaced with
    https://github.com/apache/nuttx/blob/master/sched/misc/coredump.c#L763
    and `nput` map to `off_t` 
https://github.com/apache/nuttx/blob/master/include/nuttx/streams.h#L98
    
    align with other prints, reference:
    - https://github.com/apache/nuttx/blob/master/drivers/misc/rwbuffer.c#L1121
    - https://github.com/apache/nuttx/blob/master/fs/mmap/fs_rammap.c#L84
    - https://github.com/apache/nuttx/blob/master/libs/libc/elf/elf_read.c#L85
    
    Signed-off-by: Junbo Zheng <[email protected]>
---
 sched/misc/coredump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sched/misc/coredump.c b/sched/misc/coredump.c
index 023b725a8ef..204be9195c3 100644
--- a/sched/misc/coredump.c
+++ b/sched/misc/coredump.c
@@ -759,7 +759,7 @@ static void coredump_dump_dev(pid_t pid)
       return;
     }
 
-  _alert("Finish coredump, write %zu bytes to %s\n",
+  _alert("Finish coredump, write %" PRIdOFF " bytes to %s\n",
          g_devstream.common.nput, CONFIG_BOARD_COREDUMP_DEVPATH);
 }
 #endif

Reply via email to