switch (token) {
case Opt_debug:
v9ses->debug = option;
-#ifdef CONFIG_NET_9P_DEBUG
p9_debug_level = option;
-#endif
break;
case Opt_dfltuid:
P9_DEBUG_VPKT = (1<<12),
};
-#ifdef CONFIG_NET_9P_DEBUG
extern unsigned int p9_debug_level;
#define P9_DPRINTK(level, format, arg...) \
#define P9_DUMP_PKT(way, pdu) p9pdu_dump(way, pdu)
-#else
-#define P9_DPRINTK(level, format, arg...) do { } while (0)
-#define P9_DUMP_PKT(way, pdu) do { } while (0)
-#endif
-
#define P9_EPRINTK(level, format, arg...) \
do { \
help
This builds support for an RDMA transport.
-config NET_9P_DEBUG
- bool "Debug information"
- help
- Say Y if you want the 9P subsystem to log debug information.
-
endif
#include <linux/list.h>
#include <linux/spinlock.h>
-#ifdef CONFIG_NET_9P_DEBUG
unsigned int p9_debug_level = 0; /* feature-rific global debug level */
EXPORT_SYMBOL(p9_debug_level);
module_param_named(debug, p9_debug_level, uint, 0);
MODULE_PARM_DESC(debug, "9P debugging level");
-#endif
/*
* Dynamic Transport Registration Routines
static int
p9pdu_writef(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
-#ifdef CONFIG_NET_9P_DEBUG
void
p9pdu_dump(int way, struct p9_fcall *pdu)
{
print_hex_dump_bytes("]9P[ ", DUMP_PREFIX_OFFSET, pdu->sdata,
len);
}
-#else
-void
-p9pdu_dump(int way, struct p9_fcall *pdu)
-{
-}
-#endif
EXPORT_SYMBOL(p9pdu_dump);
void p9stat_free(struct p9_wstat *stbuf)