Ejemplo n.º 1
0
DP_API void LogError( const char * format, ... )
{
    va_list args;

    va_start( args, format );
#if USE_SYSLOG
    vsyslog( LOG_ERR, format, args );
#else
    vLogError( format, args );
#endif
    va_end( args );
}
Ejemplo n.º 2
0
void LogError
(
    const char *fmt,    ///< printf style format specifier
    ...                 ///< variable list of arguments
)
{
    va_list args;

#if defined( AVR )
    //Log( "ERROR: " );
    //Log_P( PSTR( "ERROR: " ));

    va_start( args, fmt );
    vLog( fmt, args );
    va_end( args );
#else
    va_start( args, fmt );
    vLogError( fmt, args );
    va_end( args );
#endif

} // LogError