mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
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 <troglobit@gmail.com>
This commit is contained in:
1 parent
660a09c7c1
commit
e97c5e5860
1 file changed
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user