From: luodw1 Date: Fri, 25 Jan 2019 08:38:55 +0000 (+0800) Subject: add print active wakelocks when suspend failed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=040e774db5aef5113142c2087e15d097dedbba59;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git add print active wakelocks when suspend failed Change-Id: I44b12cd76773c4923349b47b9d35d89dad0f4602 Signed-off-by: luodw1 Reviewed-on: https://gerrit.mot.com/1301196 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index b7cd3b42690e..9722221ce159 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c @@ -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); } diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 45548e0e8be2..d6f26b5c1a70 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -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); }