summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorsaurabh <saurabh.truth@gmail.com>2015-10-28 08:54:01 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-02-11 11:12:55 +0100
commit22e09b333f0b395b3eb6ab6efa4b3284e2c06810 (patch)
tree89074e8f006dfe217708c606556e66fc9fa88150 /kernel
parentf7b382b988233b5851eddf4531651ffe4133e88c (diff)
downloadop-kernel-dev-22e09b333f0b395b3eb6ab6efa4b3284e2c06810.zip
op-kernel-dev-22e09b333f0b395b3eb6ab6efa4b3284e2c06810.tar.gz
PM / suspend: replacing printk
replacing printk(s) with appropriate pr_info and pr_err in order to fix checkpatch.pl warnings Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/suspend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index f9fe133..230a772 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -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;
@@ -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);
@@ -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);
OpenPOWER on IntegriCloud