Skip to content

Commit

Permalink
kernel/sys.c: sys_reboot(): fix malformed panic message
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
liguang authored and torvalds committed Jul 3, 2013
1 parent b58d977 commit 7ec75e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd,
case LINUX_REBOOT_CMD_HALT:
kernel_halt();
do_exit(0);
panic("cannot halt");
panic("cannot halt.\n");

case LINUX_REBOOT_CMD_POWER_OFF:
kernel_power_off();
Expand Down

0 comments on commit 7ec75e1

Please sign in to comment.