This is an automated email from the ASF dual-hosted git repository.
hartmannathan 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 4ada30b8f7 Revert "[POSIX][Bug] syslog: Add support for `%m` modifier"
4ada30b8f7 is described below
commit 4ada30b8f7b5886d472e60288d86ac1c2b8ffee3
Author: Javier Alonso <[email protected]>
AuthorDate: Tue Dec 24 14:54:33 2024 +0100
Revert "[POSIX][Bug] syslog: Add support for `%m` modifier"
This reverts commit badb5c5ac69574aca724a79f5256e8d8b49e8ba8.
---
libs/libc/stdio/lib_libvsprintf.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/libs/libc/stdio/lib_libvsprintf.c
b/libs/libc/stdio/lib_libvsprintf.c
index 4589154d5d..610a6a42d9 100644
--- a/libs/libc/stdio/lib_libvsprintf.c
+++ b/libs/libc/stdio/lib_libvsprintf.c
@@ -163,10 +163,6 @@ static int vsprintf_internal(FAR struct lib_outstream_s
*stream,
uint16_t flags;
int width;
int prec;
-
- /* For the %m format we may need the current `errno' value */
-
- int saved_errno = errno;
union
{
#if defined (CONFIG_LIBC_LONG_LONG) || (ULONG_MAX > 4294967295UL)
@@ -915,11 +911,6 @@ flt_oper:
size = 1;
goto str_lpad;
- case 'm': /* Print error message (%m) */
- pnt = strerror(saved_errno);
- size = strlen(pnt); /* Adjusting the size is not supported by %m */
- goto str_lpad;
-
case 's':
case 'S':
#ifdef CONFIG_LIBC_NUMBERED_ARGS