mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
Revert "[POSIX][Bug] syslog: Add support for %m
modifier"
This reverts commit badb5c5ac6
.
This commit is contained in:
parent
e3a733ae96
commit
4ada30b8f7
1 changed files with 0 additions and 9 deletions
|
@ -163,10 +163,6 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
|
||||||
uint16_t flags;
|
uint16_t flags;
|
||||||
int width;
|
int width;
|
||||||
int prec;
|
int prec;
|
||||||
|
|
||||||
/* For the %m format we may need the current `errno' value */
|
|
||||||
|
|
||||||
int saved_errno = errno;
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
#if defined (CONFIG_LIBC_LONG_LONG) || (ULONG_MAX > 4294967295UL)
|
#if defined (CONFIG_LIBC_LONG_LONG) || (ULONG_MAX > 4294967295UL)
|
||||||
|
@ -915,11 +911,6 @@ flt_oper:
|
||||||
size = 1;
|
size = 1;
|
||||||
goto str_lpad;
|
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':
|
||||||
case 'S':
|
case 'S':
|
||||||
#ifdef CONFIG_LIBC_NUMBERED_ARGS
|
#ifdef CONFIG_LIBC_NUMBERED_ARGS
|
||||||
|
|
Loading…
Reference in a new issue