From e97c5e58605f33b85d82361b99ffeacc4c9ad0a8 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 12 Oct 2017 09:03:24 +0200 Subject: [PATCH] Increase log level for poweroff/reboot/halt In case the kernel is incapable of handling a reboot, power-off, or halt request we want to be able to let the user perform some basic diagnose of the system. The existing debug messages are good enough, and use the correct grammar form, to be enabled always. Signed-off-by: Joachim Nilsson --- src/sig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sig.c b/src/sig.c index 04965da2..93e2ec85 100644 --- a/src/sig.c +++ b/src/sig.c @@ -206,15 +206,15 @@ void do_shutdown(shutop_t op) do_sleep(1); } - _d("Rebooting ..."); + _e("Rebooting ..."); reboot(RB_AUTOBOOT); } else if (op == SHUT_OFF) { - _d("Powering down ..."); + _e("Powering down ..."); reboot(RB_POWER_OFF); } /* Also fallback if any of the other two fails */ - _d("Halting ..."); + _e("Halting ..."); reboot(RB_HALT_SYSTEM); }