fixed below checkpatch warnings. -WARNING: Prefer pr_debug(... to printk(KERN_DEBUG, ...
And added pr_fmt. Signed-off-by: Toshiaki Yamane <yamaneto...@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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/