9p: fix debug build error
Fixes build problem with 9p when building with debug disabled. Also contains some fixes for warnings which pop up when CONFIG_NET_9P_DEBUG is disabled. Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
This commit is contained in:
committed by
Eric Van Hensbergen
parent
2515ddc6db
commit
0b15a3a528
@@ -56,9 +56,9 @@ enum p9_debug_flags {
|
||||
P9_DEBUG_PKT = (1<<10),
|
||||
};
|
||||
|
||||
#ifdef CONFIG_NET_9P_DEBUG
|
||||
extern unsigned int p9_debug_level;
|
||||
|
||||
#ifdef CONFIG_NET_9P_DEBUG
|
||||
#define P9_DPRINTK(level, format, arg...) \
|
||||
do { \
|
||||
if ((p9_debug_level & level) == level) {\
|
||||
|
Reference in New Issue
Block a user