From 4ada30b8f7b5886d472e60288d86ac1c2b8ffee3 Mon Sep 17 00:00:00 2001 From: Javier Alonso Date: Tue, 24 Dec 2024 14:54:33 +0100 Subject: [PATCH] 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