libbb: reduce the overhead of single parameter bb_error_msg() calls
[oweals/busybox.git] / loginutils / su.c
index 41291ea8f5b08bb2d58b043d9bc7dc4dd2683e62..7c1fc69c5b6a7443e601967ce19f8ab831e7ca90 100644 (file)
@@ -147,7 +147,7 @@ int su_main(int argc UNUSED_PARAM, char **argv)
                        syslog(LOG_NOTICE, "%c %s %s:%s",
                                '-', tty, old_user, opt_username);
                bb_do_delay(LOGIN_FAIL_DELAY);
-               bb_error_msg_and_die("incorrect password");
+               bb_simple_error_msg_and_die("incorrect password");
        }
 
        if (ENABLE_FEATURE_CLEAN_UP && ENABLE_FEATURE_SU_SYSLOG) {
@@ -165,7 +165,7 @@ int su_main(int argc UNUSED_PARAM, char **argv)
                 * probably a uucp account or has restricted access.  Don't
                 * compromise the account by allowing access with a standard
                 * shell.  */
-               bb_error_msg("using restricted shell");
+               bb_simple_error_msg("using restricted shell");
                opt_shell = NULL; /* ignore -s PROG */
        }
        /* else: user can run whatever he wants via "su -s PROG USER".