Revert "[POSIX][Bug] syslog: Add support for %m modifier"

This reverts commit badb5c5ac6.
This commit is contained in:
Javier Alonso 2024-12-24 14:54:33 +01:00 committed by hartmannathan
parent e3a733ae96
commit 4ada30b8f7

View file

@ -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