Skip to content

Commit eca6413

Browse files
paulmenzelrafaeljw
authored andcommitted
PM: freezer: Rewrite restarting tasks log to remove stray *done.*
`pr_cont()` unfortunately does not work here, as other parts of the Linux kernel log between the two log lines: [18445.295056] r8152-cfgselector 4-1.1.3: USB disconnect, device number 5 [18445.295112] OOM killer enabled. [18445.295115] Restarting tasks ... [18445.295185] usb 3-1: USB disconnect, device number 2 [18445.295193] usb 3-1.1: USB disconnect, device number 3 [18445.296262] usb 3-1.5: USB disconnect, device number 4 [18445.297017] done. [18445.297029] random: crng reseeded on system resumption `pr_cont()` also uses the default log level, normally warning, if the corresponding log line is interrupted. Therefore, replace the `pr_cont()`, and explicitly log it as a separate line with log level info: Restarting tasks: Starting […] Restarting tasks: Done Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Link: https://patch.msgid.link/20250511174648.950430-1-pmenzel@molgen.mpg.de [ rjw: Rebase on top of an earlier analogous change ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f5c0ecf commit eca6413

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/power/process.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void thaw_processes(void)
189189

190190
oom_killer_enable();
191191

192-
pr_info("Restarting tasks ...\n");
192+
pr_info("Restarting tasks: Starting\n");
193193

194194
__usermodehelper_set_disable_depth(UMH_FREEZING);
195195
thaw_workqueues();
@@ -208,7 +208,7 @@ void thaw_processes(void)
208208
usermodehelper_enable();
209209

210210
schedule();
211-
pr_info("Done restarting tasks.\n");
211+
pr_info("Restarting tasks: Done\n");
212212
trace_suspend_resume(TPS("thaw_processes"), 0, false);
213213
}
214214

0 commit comments

Comments
 (0)