From: Mohan Kumar <mohankumar718@gmail.com>
To: rjw@rjwysocki.net
Cc: daniel.lezcano@linaro.org, benh@kernel.crashing.org,
mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] drivers: cpuidle: This patch fix the following checkpatch warning.
Date: Wed, 17 Apr 2019 10:06:14 +0300 [thread overview]
Message-ID: <1555484774-5866-1-git-send-email-mohankumar718@gmail.com> (raw)
Use pr_debug instead of printk
WARNING: Prefer [subsystem eg: netdev]_dbg([subsystem]dev, ...
then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ...
Signed-off-by: Mohan Kumar <mohankumar718@gmail.com>
---
drivers/cpuidle/cpuidle-pseries.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/cpuidle/cpuidle-pseries.c b/drivers/cpuidle/cpuidle-pseries.c
index 74c2479..a9c1db8 100644
--- a/drivers/cpuidle/cpuidle-pseries.c
+++ b/drivers/cpuidle/cpuidle-pseries.c
@@ -282,7 +282,7 @@ static int __init pseries_processor_idle_init(void)
pseries_cpuidle_driver_init();
retval = cpuidle_register(&pseries_idle_driver, NULL);
if (retval) {
- printk(KERN_DEBUG "Registration of pseries driver failed.\n");
+ pr_debug("Registration of pseries driver failed.\n");
return retval;
}
@@ -294,7 +294,7 @@ static int __init pseries_processor_idle_init(void)
"cpuidle/pseries:DEAD", NULL,
pseries_cpuidle_cpu_dead);
WARN_ON(retval < 0);
- printk(KERN_DEBUG "pseries_idle_driver registered\n");
+ pr_debug("pseries_idle_driver registered\n");
return 0;
}
--
2.7.4
next reply other threads:[~2019-04-17 7:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-17 7:06 Mohan Kumar [this message]
2019-04-17 14:52 [PATCH] drivers: cpuidle: This patch fix the following checkpatch warning Mohan Kumar
2019-04-18 13:57 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1555484774-5866-1-git-send-email-mohankumar718@gmail.com \
--to=mohankumar718@gmail.com \
--cc=benh@kernel.crashing.org \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=rjw@rjwysocki.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).