diff options
author | Patrick McHardy <kaber@trash.net> | 2005-08-09 23:50:53 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:56:08 -0400 |
commit | 64ce207306debd7157f47282be94770407bec01c (patch) | |
tree | b4004f01b2b0e935b95bcce9a78e60a9e9e17f65 /include | |
parent | 64cf1e5d8b5f88d56509260e08fa0d8314277350 (diff) |
[NET]: Make NETDEBUG pure printk wrappers
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 8678313a22b4..065df67b6422 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1316,11 +1316,11 @@ extern int sock_get_timestamp(struct sock *, struct timeval __user *); | |||
1316 | */ | 1316 | */ |
1317 | 1317 | ||
1318 | #if 0 | 1318 | #if 0 |
1319 | #define NETDEBUG(x) do { } while (0) | 1319 | #define NETDEBUG(fmt, args...) do { } while (0) |
1320 | #define LIMIT_NETDEBUG(x) do {} while(0) | 1320 | #define LIMIT_NETDEBUG(fmt, args...) do { } while(0) |
1321 | #else | 1321 | #else |
1322 | #define NETDEBUG(x) do { x; } while (0) | 1322 | #define NETDEBUG(fmt, args...) printk(fmt,##args) |
1323 | #define LIMIT_NETDEBUG(x) do { if (net_ratelimit()) { x; } } while(0) | 1323 | #define LIMIT_NETDEBUG(fmt, args...) do { if (net_ratelimit()) printk(fmt,##args); } while(0) |
1324 | #endif | 1324 | #endif |
1325 | 1325 | ||
1326 | /* | 1326 | /* |