Messages in this thread Patch in this message | | | From | Toshiaki Yamane <> | Subject | [PATCH 2/2] staging/rts_pstor: Use pr_ printks in debug.h | Date | Wed, 29 Aug 2012 10:30:15 +0900 |
| |
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
| |