kernel/sys.c: sys_reboot(): fix malformed panic message
If LINUX_REBOOT_CMD_HALT for reboot failed, the message "cannot halt" will stay on the same line with the next message, so append a '\n'. Signed-off-by: liguang <lig.fnst@cn.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b58d977432
commit
7ec75e1ca1
1 changed files with 1 additions and 1 deletions
|
@ -511,7 +511,7 @@ SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd,
|
||||||
case LINUX_REBOOT_CMD_HALT:
|
case LINUX_REBOOT_CMD_HALT:
|
||||||
kernel_halt();
|
kernel_halt();
|
||||||
do_exit(0);
|
do_exit(0);
|
||||||
panic("cannot halt");
|
panic("cannot halt.\n");
|
||||||
|
|
||||||
case LINUX_REBOOT_CMD_POWER_OFF:
|
case LINUX_REBOOT_CMD_POWER_OFF:
|
||||||
kernel_power_off();
|
kernel_power_off();
|
||||||
|
|
Loading…
Reference in a new issue