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:
Bart Van Assche
2012-10-08 13:27:15 +00:00
parent dd11e8130a
commit bbc27ca421
2 changed files with 19 additions and 21 deletions
+2 -4
View File
@@ -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)