From e93100cb4d0ae49f19d0be83fc57b52d1086fee4 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Wed, 6 Apr 2022 17:34:43 +0800 Subject: [PATCH] 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 --- 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 6812946dca3..43d23d459f0 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); }