openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glibc/2.29-r0/git/locale/programs/record-status.c
void __attribute__((__format__(__printf__, 3, 4), nonnull(3), unused))
record_error(int status, int errnum, const char* format, ...)
{
    char* str;
    va_list arg;

    recorded_error_count++;

    /* The existing behaviour is that even if you use --quiet, a fatal
       error is always printed and terminates the process.  */
    if (!be_quiet || status != 0)
    {
        struct locale_state ls;
        int ret;

        va_start(arg, format);
        ls = push_locale();

        ret = vasprintf(&str, format, arg);
        if (ret == -1)
            abort();

        pop_locale(ls);
        va_end(arg);

        error(status, errnum, "[error] %s", str);

        free(str);
    }
}
/* Wrapper to print error messages.  We keep track of how
   many were called because this effects our exit code.
   Nothing is printed if --quiet is in effect, but errors
   are always counted, and fatal errors always exit the
   program.  */
Wrapper to print error messages.  We keep track of how
many were called because this effects our exit code.
Nothing is printed if --quiet is in effect, but errors
are always counted, and fatal errors always exit the
program.
Wrapper to print error messages . We keep track of how many were called because this effects our exit code . Nothing is printed if -- quiet is in effect but errors are always counted and fatal errors always exit the program .
void __attribute__((__format__(__printf__, 3, 4), nonnull(3), unused))
record_error(int status, int errnum, const char* format, ...)
{
    char* str;
    va_list arg;
    recorded_error_count++;
    if (!be_quiet || status != 0)
    {
        struct locale_state ls;
        int ret;
        va_start(arg, format);
        ls = push_locale();
        ret = vasprintf(&str, format, arg);
        if (ret == -1)
            abort();
        pop_locale(ls);
        va_end(arg);
        error(status, errnum, "[error] %s", str);
        free(str);
    }
}
void __attribute__ ( ( __format__ ( __printf__ , 3 , 4 ) , nonnull ( 3 ) , unused ) ) record_error ( int status , int errnum , const char * format , ... ) { char * str ; va_list arg ; recorded_error_count ++ ; if ( ! be_quiet || status != 0 ) { struct locale_state ls ; int ret ; va_start ( arg , format ) ; ls = push_locale ( ) ; ret = vasprintf ( & str , format , arg ) ; if ( ret == -1 ) abort ( ) ; pop_locale ( ls ) ; va_end ( arg ) ; error ( status , errnum , " " , str ) ; free ( str ) ; } }
Wrapper to print error messages.
Wrapper to print error messages .
/* The existing behaviour is that even if you use --quiet, a fatal
       error is always printed and terminates the process.  */