PM: sleep: Avoid using pr_cont() in the tasks freezing code
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 1 Dec 2022 18:33:09 +0000 (19:33 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 Dec 2022 11:04:10 +0000 (12:04 +0100)
commita449dfbfc0894676ad0aa1873383265047529e3a
treecae6eeee9ccfb66871bc58266543fa58de63daae
parent3363e0adb3931e987caa6404327b35ea2db231d8
PM: sleep: Avoid using pr_cont() in the tasks freezing code

Using pr_cont() in the tasks freezing code related to system-wide
suspend and hibernation is problematic, because the continuation
messages printed there are susceptible to interspersing with other
unrelated messages which results in output that is hard to
understand.

Address this issue by modifying try_to_freeze_tasks() to print
messages that don't require continuations and adjusting its
callers accordingly.

Reported-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
kernel/power/process.c