add print active wakelocks when suspend failed
authorluodw1 <luodw1@motorola.com>
Fri, 25 Jan 2019 08:38:55 +0000 (16:38 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:54 +0000 (20:23 +0300)
Change-Id: I44b12cd76773c4923349b47b9d35d89dad0f4602
Signed-off-by: luodw1 <luodw1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1301196
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/base/power/wakeup.c
kernel/power/suspend.c

index 74d062f8b22aa414bce82b7bea6b76d358a466cb..432cd78aa0bf1a478a28f7bb53a71df61b00d19f 100644 (file)
@@ -852,7 +852,7 @@ void pm_print_active_wakeup_sources(void)
        srcuidx = srcu_read_lock(&wakeup_srcu);
        list_for_each_entry_rcu(ws, &wakeup_sources, entry) {
                if (ws->active) {
-                       pr_debug("active wakeup source: %s\n", ws->name);
+                       pr_info("active wakeup source: %s\n", ws->name);
                        active = 1;
                } else if (!active &&
                           (!last_activity_ws ||
@@ -863,7 +863,7 @@ void pm_print_active_wakeup_sources(void)
        }
 
        if (!active && last_activity_ws)
-               pr_debug("last active wakeup source: %s\n",
+               pr_info("last active wakeup source: %s\n",
                        last_activity_ws->name);
        srcu_read_unlock(&wakeup_srcu, srcuidx);
 }
index 45548e0e8be2a19d667192c32bb5d0dd4f6b236c..d6f26b5c1a705cad637b4e32d4b489b33aca6bcb 100644 (file)
@@ -632,7 +632,7 @@ static void pm_suspend_marker(char *annotation)
 
        getnstimeofday(&ts);
        rtc_time_to_tm(ts.tv_sec, &tm);
-       pr_info("PM: suspend %s %d-%02d-%02d %02d:%02d:%02d.%09lu UTC\n",
+       pr_info("suspend %s %d-%02d-%02d %02d:%02d:%02d.%09lu UTC\n",
                annotation, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
                tm.tm_hour, tm.tm_min, tm.tm_sec, ts.tv_nsec);
 }