[git commit] sulogin: use bb_error_msg instead of bb_info_msg; better message

Denys Vlasenko vda.linux at googlemail.com
Wed Mar 30 15:36:20 UTC 2016


commit: https://git.busybox.net/busybox/commit/?id=2a17fbe88a0cc064248db4ce8939f0fbc357922d
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Historic "System Maintenance Mode" message is a tiny bit cryptic.
Let's say explicitly what we are doing: we are giving user a shell
(presumably to do some maintenance in single-user mode).

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 loginutils/sulogin.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 33f078a..f324695 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -69,17 +69,17 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv)
 		);
 		if (r < 0) {
 			/* ^D, ^C, timeout, or read error */
-			bb_info_msg("Normal startup");
+			bb_error_msg("normal startup");
 			return 0;
 		}
 		if (r > 0) {
 			break;
 		}
 		bb_do_delay(LOGIN_FAIL_DELAY);
-		bb_info_msg("Login incorrect");
+		bb_error_msg("Login incorrect");
 	}
 
-	bb_info_msg("System Maintenance Mode");
+	bb_error_msg("starting shell for system maintenance");
 
 	IF_SELINUX(renew_current_security_context());
 


More information about the busybox-cvs mailing list