Skip to content

Commit 4ada30b

Browse files
Javinator9889hartmannathan
authored andcommitted
Revert "[POSIX][Bug] syslog: Add support for %m modifier"
This reverts commit badb5c5.
1 parent e3a733a commit 4ada30b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

libs/libc/stdio/lib_libvsprintf.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
163163
uint16_t flags;
164164
int width;
165165
int prec;
166-
167-
/* For the %m format we may need the current `errno' value */
168-
169-
int saved_errno = errno;
170166
union
171167
{
172168
#if defined (CONFIG_LIBC_LONG_LONG) || (ULONG_MAX > 4294967295UL)
@@ -915,11 +911,6 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
915911
size = 1;
916912
goto str_lpad;
917913

918-
case 'm': /* Print error message (%m) */
919-
pnt = strerror(saved_errno);
920-
size = strlen(pnt); /* Adjusting the size is not supported by %m */
921-
goto str_lpad;
922-
923914
case 's':
924915
case 'S':
925916
#ifdef CONFIG_LIBC_NUMBERED_ARGS

0 commit comments

Comments
 (0)