core/unix/os.c
/* FIXME: this one will not be easily internationalizable 
   yet it is easier to have a syslog based Unix implementation with real strings.
 */
this one will not be easily internationalizable
yet it is easier to have a syslog based Unix implementation with real strings.
this one will not be easily internationalizable yet it is easier to have a syslog based Unix implementation with real strings .
void 
os_syslog(syslog_event_type_t priority, uint message_id, 
          uint substitutions_num, va_list args) {
    int native_priority;
    switch (priority) {
    case SYSLOG_INFORMATION: native_priority = LOG_INFO; break;
    case SYSLOG_WARNING:     native_priority = LOG_WARNING; break;
    case SYSLOG_CRITICAL:    native_priority = LOG_CRIT; break;
    case SYSLOG_ERROR:       native_priority = LOG_ERR; break;
    default:
        ASSERT_NOT_REACHED();
    }
    ASSERT_NOT_IMPLEMENTED(false);
}
void os_syslog ( syslog_event_type_t priority , uint message_id , uint substitutions_num , va_list args ) { int native_priority ; switch ( priority ) { case SYSLOG_INFORMATION : native_priority = LOG_INFO ; break ; case SYSLOG_WARNING : native_priority = LOG_WARNING ; break ; case SYSLOG_CRITICAL : native_priority = LOG_CRIT ; break ; case SYSLOG_ERROR : native_priority = LOG_ERR ; break ; default : ASSERT_NOT_REACHED ( ) ; } ASSERT_NOT_IMPLEMENTED ( false ) ; }
FIXME: this one will not be easily internationalizable
yet it is easier to have a syslog based Unix implementation with real strings.
FIXME : this one will not be easily internationalizable yet it is easier to have a syslog based Unix implementation with real strings .
/* can amount to passing a format string (careful here) to vsyslog */ /* Never let user controlled data in the format string! */