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 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2022-04-07 12:14:27 +08:00
committed by Xiang Xiao
parent d87cf8d4ca
commit e93100cb4d
+1 -1
View File
@@ -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);
}