add print active wakelocks when suspend failed
authorluodw1 <luodw1@motorola.com>
Fri, 25 Jan 2019 08:38:55 +0000 (16:38 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:39 +0000 (17:30 +0800)
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 b7cd3b42690ebbe172085e8b8b02026d91644582..9722221ce1592f95ab7b76bb4f6852bad0e350a0 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);
 }