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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Mar 2023 10:52:23 +0000 (11:52 +0100)
commitf2173508b195958c97c4a1da28389dc7544d1bc1
tree6458247c331919f9e886100fc655d9d82627ece1
parent0c2f28f01fce6d5eb34f3e664824d50d563ee720
PM: sleep: Avoid using pr_cont() in the tasks freezing code

commit a449dfbfc0894676ad0aa1873383265047529e3a upstream.

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>
Cc: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/power/process.c