Skip to content

Commit

Permalink
PM / suspend: replacing printk
Browse files Browse the repository at this point in the history
replacing printk(s) with appropriate pr_info and pr_err
in order to fix checkpatch.pl warnings

Signed-off-by: Saurabh Sengar <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
saurabh-sengar authored and rafaeljw committed Feb 11, 2016
1 parent f7b382b commit 22e09b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/power/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ static int suspend_test(int level)
{
#ifdef CONFIG_PM_DEBUG
if (pm_test_level == level) {
printk(KERN_INFO "suspend debug: Waiting for %d second(s).\n",
pr_info("suspend debug: Waiting for %d second(s).\n",
pm_test_delay);
mdelay(pm_test_delay * 1000);
return 1;
Expand Down Expand Up @@ -320,7 +320,7 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)

error = dpm_suspend_late(PMSG_SUSPEND);
if (error) {
printk(KERN_ERR "PM: late suspend of devices failed\n");
pr_err("PM: late suspend of devices failed\n");
goto Platform_finish;
}
error = platform_suspend_prepare_late(state);
Expand All @@ -329,7 +329,7 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)

error = dpm_suspend_noirq(PMSG_SUSPEND);
if (error) {
printk(KERN_ERR "PM: noirq suspend of devices failed\n");
pr_err("PM: noirq suspend of devices failed\n");
goto Platform_early_resume;
}
error = platform_suspend_prepare_noirq(state);
Expand Down

0 comments on commit 22e09b3

Please sign in to comment.