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-06 17:34:43 +08:00 committed by Xiang Xiao
parent d87cf8d4ca
commit e93100cb4d

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);
}