linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Toshiaki Yamane <yamanetoshi@gmail.com>
To: Greg Kroah-Hartman <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, Toshiaki Yamane <yamanetoshi@gmail.com>
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: <1346203816-5975-1-git-send-email-yamanetoshi@gmail.com> (raw)
In-Reply-To: <1346203766-5939-1-git-send-email-yamanetoshi@gmail.com>

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

And added pr_fmt.

Signed-off-by: Toshiaki Yamane <yamanetoshi@gmail.com>
---
 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 @@
 #ifndef __REALTEK_RTSX_DEBUG_H
 #define __REALTEK_RTSX_DEBUG_H
 
-#include <linux/kernel.h>
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
-#define RTSX_STOR "rts_pstor: "
+#include <linux/kernel.h>
 
 #ifdef CONFIG_RTS_PSTOR_DEBUG
-#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
 #else
-- 
1.7.9.5


  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:
  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=1346203816-5975-1-git-send-email-yamanetoshi@gmail.com \
    --to=yamanetoshi@gmail.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /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).