mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 05:06:31 +00:00
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 <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@584 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user