archive mirror
 help / color / mirror / Atom feed
From: Toshiaki Yamane <>
To: Greg Kroah-Hartman <>
Cc:, Toshiaki Yamane <>
Subject: [PATCH 2/2] staging/rts_pstor: Use pr_ printks in debug.h
Date: Wed, 29 Aug 2012 10:30:15 +0900	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

fixed below checkpatch warnings.
-WARNING: Prefer pr_debug(... to printk(KERN_DEBUG, ...

And added pr_fmt.

Signed-off-by: Toshiaki Yamane <>
 drivers/staging/rts_pstor/debug.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rts_pstor/debug.h b/drivers/staging/rts_pstor/debug.h
index ab305be..e6b3425 100644
--- a/drivers/staging/rts_pstor/debug.h
+++ b/drivers/staging/rts_pstor/debug.h
@@ -24,13 +24,13 @@
-#include <linux/kernel.h>
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-#define RTSX_STOR "rts_pstor: "
+#include <linux/kernel.h>
-#define RTSX_DEBUGP(x...) printk(KERN_DEBUG RTSX_STOR x)
-#define RTSX_DEBUGPN(x...) printk(KERN_DEBUG x)
+#define RTSX_DEBUGP(x...) pr_debug(x)
+#define RTSX_DEBUGPN(x...) pr_debug(x)
 #define RTSX_DEBUGPX(x...) printk(x)
 #define RTSX_DEBUG(x) x

  reply	other threads:[~2012-08-29  1:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-29  1:29 [PATCH 1/2] staging/rts_pstor: Use pr_ printks in rtsx.c Toshiaki Yamane
2012-08-29  1:30 ` Toshiaki Yamane [this message]
2012-09-04 19:26   ` [PATCH 2/2] staging/rts_pstor: Use pr_ printks in debug.h Greg Kroah-Hartman
2012-09-04 19:25 ` [PATCH 1/2] staging/rts_pstor: Use pr_ printks in rtsx.c Greg Kroah-Hartman
2012-09-16  7:26 ` [PATCH] staging/rts_pstor: Use pr_ or dev_ " Toshiaki Yamane

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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).