mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 20:16:16 +07:00
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>
This commit is contained in:
parent
36cbb2452c
commit
c0560b9c52
@ -22,8 +22,8 @@
|
|||||||
/*
|
/*
|
||||||
* DCCP - specific warning and debugging macros.
|
* DCCP - specific warning and debugging macros.
|
||||||
*/
|
*/
|
||||||
#define DCCP_WARN(fmt, a...) LIMIT_NETDEBUG(KERN_WARNING "%s: " fmt, \
|
#define DCCP_WARN(fmt, ...) \
|
||||||
__func__, ##a)
|
net_warn_ratelimited("%s: " fmt, __func__, ##__VA_ARGS__)
|
||||||
#define DCCP_CRIT(fmt, a...) printk(KERN_CRIT fmt " at %s:%d/%s()\n", ##a, \
|
#define DCCP_CRIT(fmt, a...) printk(KERN_CRIT fmt " at %s:%d/%s()\n", ##a, \
|
||||||
__FILE__, __LINE__, __func__)
|
__FILE__, __LINE__, __func__)
|
||||||
#define DCCP_BUG(a...) do { DCCP_CRIT("BUG: " a); dump_stack(); } while(0)
|
#define DCCP_BUG(a...) do { DCCP_CRIT("BUG: " a); dump_stack(); } while(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user