diff options
| author | Joe Perches <joe@perches.com> | 2014-11-06 15:53:41 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-11-08 21:22:54 -0500 |
| commit | c0560b9c523341516eabf0f3b51832256caa7bbb (patch) | |
| tree | 4ffbee34cbdf1988cfcf72cd48cbb147d23a48be /net/dccp | |
| parent | 36cbb2452cbafca64dcdd3578047433787900cf0 (diff) | |
dccp: Convert DCCP_WARN to net_warn_ratelimited
Remove the dependency on the "warning" sysctl (net_msg_warn)
which is only used by the LIMIT_NETDEBUG macro.
Convert the LIMIT_NETDEBUG use in DCCP_WARN to the more
common net_warn_ratelimited mechanism.
This still ratelimits based on the net_ratelimit()
function, but removes the check for the sysctl.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
| -rw-r--r-- | net/dccp/dccp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index c67816647cce..e4c144fa706f 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h | |||
| @@ -22,8 +22,8 @@ | |||
| 22 | /* | 22 | /* |
| 23 | * DCCP - specific warning and debugging macros. | 23 | * DCCP - specific warning and debugging macros. |
| 24 | */ | 24 | */ |
| 25 | #define DCCP_WARN(fmt, a...) LIMIT_NETDEBUG(KERN_WARNING "%s: " fmt, \ | 25 | #define DCCP_WARN(fmt, ...) \ |
| 26 | __func__, ##a) | 26 | net_warn_ratelimited("%s: " fmt, __func__, ##__VA_ARGS__) |
| 27 | #define DCCP_CRIT(fmt, a...) printk(KERN_CRIT fmt " at %s:%d/%s()\n", ##a, \ | 27 | #define DCCP_CRIT(fmt, a...) printk(KERN_CRIT fmt " at %s:%d/%s()\n", ##a, \ |
| 28 | __FILE__, __LINE__, __func__) | 28 | __FILE__, __LINE__, __func__) |
| 29 | #define DCCP_BUG(a...) do { DCCP_CRIT("BUG: " a); dump_stack(); } while(0) | 29 | #define DCCP_BUG(a...) do { DCCP_CRIT("BUG: " a); dump_stack(); } while(0) |
