openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus/1.12.16-r0/dbus-1.12.16/dbus/dbus-sysdeps-unix.c
void _dbus_init_system_log(const char* tag, DBusLogFlags flags)
{
    /* We never want to turn off logging completely */
    _dbus_assert(
        (flags & (DBUS_LOG_FLAGS_STDERR | DBUS_LOG_FLAGS_SYSTEM_LOG)) != 0);

    syslog_tag = tag;

#ifdef HAVE_SYSLOG_H
    log_flags = flags;

    if (log_flags & DBUS_LOG_FLAGS_SYSTEM_LOG)
        openlog(tag, LOG_PID, LOG_DAEMON);
#endif
}
/**
 * Initialize the system log.
 *
 * The "tag" is not copied, and must remain valid for the entire lifetime of
 * the process or until _dbus_init_system_log() is called again. In practice
 * it will normally be a constant.
 *
 * On platforms that do not support a system log, the
 * #DBUS_LOG_FLAGS_SYSTEM_LOG flag is treated as equivalent to
 * #DBUS_LOG_FLAGS_STDERR.
 *
 * @param tag the name of the executable (syslog tag)
 * @param mode whether to log to stderr, the system log or both
 */
Initialize the system log.
The "tag" is not copied, and must remain valid for the entire lifetime of
the process or until _dbus_init_system_log() is called again. In practice
it will normally be a constant.

On platforms that do not support a system log, the
#DBUS_LOG_FLAGS_SYSTEM_LOG flag is treated as equivalent to
#DBUS_LOG_FLAGS_STDERR.

@param tag the name of the executable (syslog tag)
@param mode whether to log to stderr, the system log or both
Initialize the system log . The " tag " is not copied and must remain valid for the entire lifetime of the process or until _dbus_init_system_log () is called again . In practice it will normally be a constant . On platforms that do not support a system log the #DBUS_LOG_FLAGS_SYSTEM_LOG flag is treated as equivalent to #DBUS_LOG_FLAGS_STDERR . @param tag the name of the executable ( syslog tag ) @param mode whether to log to stderr the system log or both
void _dbus_init_system_log(const char* tag, DBusLogFlags flags)
{
    _dbus_assert(
        (flags & (DBUS_LOG_FLAGS_STDERR | DBUS_LOG_FLAGS_SYSTEM_LOG)) != 0);
    syslog_tag = tag;
#ifdef HAVE_SYSLOG_H
    log_flags = flags;
    if (log_flags & DBUS_LOG_FLAGS_SYSTEM_LOG)
        openlog(tag, LOG_PID, LOG_DAEMON);
#endif
}
void _dbus_init_system_log ( const char * tag , DBusLogFlags flags ) { _dbus_assert ( ( flags & ( DBUS_LOG_FLAGS_STDERR | DBUS_LOG_FLAGS_SYSTEM_LOG ) ) != 0 ) ; syslog_tag = tag ; #ifdef HAVE_SYSLOG_H log_flags = flags ; if ( log_flags & DBUS_LOG_FLAGS_SYSTEM_LOG ) openlog ( tag , LOG_PID , LOG_DAEMON ) ; #endif }
Initialize the system log.
Initialize the system log .
/* We never want to turn off logging completely */