[NET]: Make NETDEBUG pure printk wrappers
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
64cf1e5d8b
commit
64ce207306
@ -1316,11 +1316,11 @@ extern int sock_get_timestamp(struct sock *, struct timeval __user *);
|
||||
*/
|
||||
|
||||
#if 0
|
||||
#define NETDEBUG(x) do { } while (0)
|
||||
#define LIMIT_NETDEBUG(x) do {} while(0)
|
||||
#define NETDEBUG(fmt, args...) do { } while (0)
|
||||
#define LIMIT_NETDEBUG(fmt, args...) do { } while(0)
|
||||
#else
|
||||
#define NETDEBUG(x) do { x; } while (0)
|
||||
#define LIMIT_NETDEBUG(x) do { if (net_ratelimit()) { x; } } while(0)
|
||||
#define NETDEBUG(fmt, args...) printk(fmt,##args)
|
||||
#define LIMIT_NETDEBUG(fmt, args...) do { if (net_ratelimit()) printk(fmt,##args); } while(0)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user