From fb1a23d73bd3d0f4b364d02c5e733e23e2dd5df7 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 7 Mar 2009 01:54:24 +0000 Subject: halt/reboot/poweroff: improve error reporting function old new delta halt_main 207 185 -22 --- init/halt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init/halt.c') diff --git a/init/halt.c b/init/halt.c index e852b870e..62f93c5cd 100644 --- a/init/halt.c +++ b/init/halt.c @@ -95,6 +95,6 @@ int halt_main(int argc UNUSED_PARAM, char **argv) rc = reboot(magic[which]); if (rc) - bb_error_msg("no"); + bb_perror_nomsg_and_die(); return rc; } -- cgit v1.2.3