ncpfs: convert DPRINTK/DDPRINTK to ncp_dbg
Use a more current logging style and enable use of dynamic debugging. Remove embedded function names, dynamic debug can add this instead. Signed-off-by: Joe Perches <joe@perches.com> Cc: Petr Vandrovec <petr@vandrovec.name> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
b41f8b84d0
commit
d3b73ca1be
@@ -15,17 +15,17 @@
|
||||
#ifndef DEBUG_NCP
|
||||
#define DEBUG_NCP 0
|
||||
#endif
|
||||
#if DEBUG_NCP > 0
|
||||
#define DPRINTK(format, args...) PRINTK(format , ## args)
|
||||
#else
|
||||
#define DPRINTK(format, args...)
|
||||
#endif
|
||||
#if DEBUG_NCP > 1
|
||||
#define DDPRINTK(format, args...) PRINTK(format , ## args)
|
||||
#else
|
||||
#define DDPRINTK(format, args...)
|
||||
|
||||
#if DEBUG_NCP > 0 && !defined(DEBUG)
|
||||
#define DEBUG
|
||||
#endif
|
||||
|
||||
#define ncp_dbg(level, fmt, ...) \
|
||||
do { \
|
||||
if (level <= DEBUG_NCP) \
|
||||
pr_debug(fmt, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define NCP_MAX_RPC_TIMEOUT (6*HZ)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user