Skip to content

Commit 1adb469

Browse files
jonhunterrafaeljw
authored andcommitted
PM / suspend: Fix missing KERN_CONT for suspend message
Commit 4bcc595 (printk: reinstate KERN_CONT for printing continuation lines) exposed a missing KERN_CONT from one of the messages shown on entering suspend. With v4.9-rc1, the 'done.' shown after syncing the filesystems no longer appears as a continuation but a new message with its own timestamp. [ 9.259566] PM: Syncing filesystems ... [ 9.264119] done. Fix this by adding the KERN_CONT log level for the 'done.' part of the message seen after syncing filesystems. While we are at it, convert these suspend printks to pr_info and pr_cont, respectively. Signed-off-by: Jon Hunter <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 07d9a38 commit 1adb469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/power/suspend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,9 @@ static int enter_state(suspend_state_t state)
498498

499499
#ifndef CONFIG_SUSPEND_SKIP_SYNC
500500
trace_suspend_resume(TPS("sync_filesystems"), 0, true);
501-
printk(KERN_INFO "PM: Syncing filesystems ... ");
501+
pr_info("PM: Syncing filesystems ... ");
502502
sys_sync();
503-
printk("done.\n");
503+
pr_cont("done.\n");
504504
trace_suspend_resume(TPS("sync_filesystems"), 0, false);
505505
#endif
506506

0 commit comments

Comments
 (0)