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/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 18497e5bc6 long double need use the format of 'Lf'
18497e5bc6 is described below
commit 18497e5bc627e86554f85fe0db03222c1b32a71b
Author: zhangwenjian <[email protected]>
AuthorDate: Wed Jul 17 19:07:22 2024 +0800
long double need use the format of 'Lf'
Signed-off-by: zhangwenjian <[email protected]>
---
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 e0402aceee..a2d4e7b9ef 100644
--- a/libs/libc/stdio/lib_libvsprintf.c
+++ b/libs/libc/stdio/lib_libvsprintf.c
@@ -434,7 +434,7 @@ static int vsprintf_internal(FAR struct lib_outstream_s
*stream,
continue;
}
- if (c == 'l')
+ if (c == 'l' || c == 'L')
{
if ((flags & FL_LONG) != 0)
{