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 2022/04/07 04:14:33 UTC
[incubator-nuttx] branch master updated: lib_lib_vsprintf/backtrace: fix the type issue
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 e93100cb4d lib_lib_vsprintf/backtrace: fix the type issue
e93100cb4d is described below
commit e93100cb4d0ae49f19d0be83fc57b52d1086fee4
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Wed Apr 6 17:34:43 2022 +0800
lib_lib_vsprintf/backtrace: fix the type issue
using 't': For integer types, causes printf to expect
a ptrdiff_t-sized integer argument.
Signed-off-by: Jiuzhu Dong <do...@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 6812946dca..43d23d459f 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, "+%#jx/%#zx",
+ sprintf_internal(stream, "+%#tx/%#zx",
addr - symbol->sym_value,
symbolsize);
}