You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/03/09 08:17:54 UTC

[incubator-nuttx] 01/03: libs/vsprintf: fix the type issue

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

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

commit 82f90e4c330b114aa3519e09c9eff0e32f9767a5
Author: chao.an <an...@xiaomi.com>
AuthorDate: Tue Mar 8 22:28:44 2022 +0800

    libs/vsprintf: fix the type issue
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 libs/libc/stdio/lib_libvsprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/libc/stdio/lib_libvsprintf.c b/libs/libc/stdio/lib_libvsprintf.c
index 8588e89..b5990e2 100644
--- a/libs/libc/stdio/lib_libvsprintf.c
+++ b/libs/libc/stdio/lib_libvsprintf.c
@@ -1160,7 +1160,7 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
 
                           if (c == 'S')
                             {
-                              sprintf_internal(stream, "+%#x/%#x",
+                              sprintf_internal(stream, "+%#jx/%#zx",
                                                addr - symbol->sym_value,
                                                symbolsize);
                             }