mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-29 03:05:46 +00:00
fcst: Switch to the new and preferred way for printing kernel messages
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4553 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+2
-4
@@ -40,14 +40,12 @@
|
||||
|
||||
extern unsigned int ft_debug_logging; /* debug options */
|
||||
|
||||
#define FT_ERR(fmt, args...) \
|
||||
printk(KERN_ERR FT_MODULE ": %s: " fmt, __func__, ##args)
|
||||
#define FT_ERR(fmt, args...) pr_err("%s: " fmt, __func__, ##args)
|
||||
|
||||
#define FT_DEBUG(mask, fmt, args...) \
|
||||
do { \
|
||||
if (ft_debug_logging & (mask)) \
|
||||
printk(KERN_INFO FT_MODULE ": %s: " fmt, \
|
||||
__func__, ##args); \
|
||||
pr_info("%s: " fmt, __func__, ##args); \
|
||||
} while (0)
|
||||
|
||||
#define FT_CONF_DBG(fmt, args...) FT_DEBUG(FT_DEBUG_CONF, fmt, ##args)
|
||||
|
||||
Reference in New Issue
Block a user