openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glibc/2.29-r0/git/debug/sprintf_chk.c
int ___sprintf_chk(char* s, int flag, size_t slen, const char* format, ...)
{
    /* For flag > 0 (i.e. __USE_FORTIFY_LEVEL > 1) request that %n
       can only come from read-only format strings.  */
    unsigned int mode = (flag > 0) ? PRINTF_FORTIFY : 0;
    va_list ap;
    int ret;

    /* Regardless of the value of flag, let __vsprintf_internal know that
       this is a call from *printf_chk.  */
    mode |= PRINTF_CHK;

    if (slen == 0)
        __chk_fail();

    va_start(ap, format);
    ret = __vsprintf_internal(s, slen, format, ap, mode);
    va_end(ap);

    return ret;
}
/* Write formatted output into S, according to the format string FORMAT.  */
Write formatted output into S, according to the format string FORMAT.
Write formatted output into S according to the format string FORMAT .
int ___sprintf_chk(char* s, int flag, size_t slen, const char* format, ...)
{
    unsigned int mode = (flag > 0) ? PRINTF_FORTIFY : 0;
    va_list ap;
    int ret;
    mode |= PRINTF_CHK;
    if (slen == 0)
        __chk_fail();
    va_start(ap, format);
    ret = __vsprintf_internal(s, slen, format, ap, mode);
    va_end(ap);
    return ret;
}
int ___sprintf_chk ( char * s , int flag , size_t slen , const char * format , ... ) { unsigned int mode = ( flag > 0 ) ? PRINTF_FORTIFY : 0 ; va_list ap ; int ret ; mode |= PRINTF_CHK ; if ( slen == 0 ) __chk_fail ( ) ; va_start ( ap , format ) ; ret = __vsprintf_internal ( s , slen , format , ap , mode ) ; va_end ( ap ) ; return ret ; }
Write formatted output into S, according to the format string FORMAT.
Write formatted output into S according to the format string FORMAT .
/* For flag > 0 (i.e. __USE_FORTIFY_LEVEL > 1) request that %n
       can only come from read-only format strings.  */ /* Regardless of the value of flag, let __vsprintf_internal know that
       this is a call from *printf_chk.  */