openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/login-utils/su-common.c
static void log_syslog(struct su_context* su, bool successful)
{
    DBG(LOG, ul_debug("syslog logging"));

    openlog(program_invocation_short_name, 0, LOG_AUTH);
    syslog(LOG_NOTICE, "%s(to %s) %s on %s",
           successful ? "" : su->runuser ? "FAILED RUNUSER " : "FAILED SU ",
           su->new_user, su->old_user ?: "", su->tty_name ?: "none");
    closelog();
}
/* Log the fact that someone has run su to the user given by PW;
   if SUCCESSFUL is true, they gave the correct password, etc.  */
Log the fact that someone has run su to the user given by PW;
if SUCCESSFUL is true, they gave the correct password, etc.
Log the fact that someone has run su to the user given by PW ; if SUCCESSFUL is true they gave the correct password etc .
static void log_syslog(struct su_context* su, bool successful)
{
    DBG(LOG, ul_debug("syslog logging"));
    openlog(program_invocation_short_name, 0, LOG_AUTH);
    syslog(LOG_NOTICE, "%s(to %s) %s on %s",
           successful ? "" : su->runuser ? "FAILED RUNUSER " : "FAILED SU ",
           su->new_user, su->old_user ?: "", su->tty_name ?: "none");
    closelog();
}
static void log_syslog ( struct su_context * su , bool successful ) { DBG ( LOG , ul_debug ( " " ) ) ; openlog ( program_invocation_short_name , 0 , LOG_AUTH ) ; syslog ( LOG_NOTICE , " " , successful ? " " : su -> runuser ? " " : " " , su -> new_user , su -> old_user ? : " " , su -> tty_name ? : " " ) ; closelog ( ) ; }
Log the fact that someone has run su to the user given by PW;
if SUCCESSFUL is true, they gave the correct password, etc.
Log the fact that someone has run su to the user given by PW ; if SUCCESSFUL is true they gave the correct password etc .