aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2009-03-07 01:54:24 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2009-03-07 01:54:24 +0000
commitfb1a23d73bd3d0f4b364d02c5e733e23e2dd5df7 (patch)
treebe0a26115c39024b8f1f6494b766fbe9cc356016 /init
parenta6b6f05379b0d68229b1bb230753ac498692e694 (diff)
downloadbusybox-fb1a23d73bd3d0f4b364d02c5e733e23e2dd5df7.tar.gz
busybox-fb1a23d73bd3d0f4b364d02c5e733e23e2dd5df7.tar.bz2
halt/reboot/poweroff: improve error reporting
function old new delta halt_main 207 185 -22
Diffstat (limited to 'init')
-rw-r--r--init/halt.c2
1 files changed, 1 insertions, 1 deletions
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;
}