From 9183709081bccf3af1252475dba33ce4cb6db80f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 26 Nov 2008 19:00:23 +0000 Subject: [PATCH] There are two remaining printk() statements on which checkpatch warns that the KERN_ facility level is missing. Algthough these warnings are false positives, I have developed a patch to suppress these warnings. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@584 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_debug.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index 4b8e8ec72..04b3203b4 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -114,10 +114,14 @@ #define TRACE_ALL 0xffffffff /* Flags 0xXXXX0000 are local for users */ +/* + * Note: in the next two printk() statements the KERN_CONT macro is only + * present to suppress a checkpatch warning (KERN_CONT is defined as ""). + */ #define PRINT(log_flag, format, args...) \ - printk("%s" format "\n", log_flag, ## args) + printk(KERN_CONT "%s" format "\n", log_flag, ## args) #define PRINTN(log_flag, format, args...) \ - printk("%s" format, log_flag, ## args) + printk(KERN_CONT "%s" format, log_flag, ## args) #ifdef LOG_PREFIX #define __LOG_PREFIX LOG_PREFIX