* [PATCH v3] PM / suspend: replacing printk
@ 2015-10-28 3:21 Saurabh Sengar
0 siblings, 0 replies; 3+ messages in thread
From: Saurabh Sengar @ 2015-10-28 3:21 UTC (permalink / raw)
To: rjw, pavel, len.brown, linux-pm, linux-kernel; +Cc: Saurabh Sengar
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>
---
kernel/power/suspend.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 7e4cda4..7fec885 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -245,7 +245,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;
@@ -317,7 +317,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);
@@ -326,7 +326,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);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v3] PM / suspend: replacing printk
@ 2015-10-28 3:24 Saurabh Sengar
2015-11-14 20:29 ` Pavel Machek
0 siblings, 1 reply; 3+ messages in thread
From: Saurabh Sengar @ 2015-10-28 3:24 UTC (permalink / raw)
To: rjw, pavel, len.brown, linux-pm, linux-kernel; +Cc: Saurabh Sengar
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>
---
kernel/power/suspend.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 7e4cda4..7fec885 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -245,7 +245,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;
@@ -317,7 +317,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);
@@ -326,7 +326,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);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] PM / suspend: replacing printk
2015-10-28 3:24 [PATCH v3] PM / suspend: replacing printk Saurabh Sengar
@ 2015-11-14 20:29 ` Pavel Machek
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2015-11-14 20:29 UTC (permalink / raw)
To: Saurabh Sengar; +Cc: rjw, len.brown, linux-pm, linux-kernel
On Wed 2015-10-28 08:54:01, Saurabh Sengar wrote:
> 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>
> @@ -245,7 +245,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;
> @@ -317,7 +317,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);
> @@ -326,7 +326,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);
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-14 20:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28 3:24 [PATCH v3] PM / suspend: replacing printk Saurabh Sengar
2015-11-14 20:29 ` Pavel Machek
-- strict thread matches above, loose matches on Subject: below --
2015-10-28 3:21 Saurabh Sengar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).