You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
IPVS: use pr_err and friends instead of IP_VS_ERR and friends
Since pr_err and friends are used instead of printk there is no point in keeping IP_VS_ERR and friends. Furthermore make use of '__func__' instead of hard coded function names. Signed-off-by: Hannes Eder <heder@google.com> Acked-by: Simon Horman <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
bcd218be5a
commit
1e3e238e9c
+2
-5
@@ -150,13 +150,10 @@ static inline const char *ip_vs_dbg_addr(int af, char *buf, size_t buf_len,
|
||||
#endif
|
||||
|
||||
#define IP_VS_BUG() BUG()
|
||||
#define IP_VS_ERR(msg...) pr_err(msg)
|
||||
#define IP_VS_INFO(msg...) pr_info(msg)
|
||||
#define IP_VS_WARNING(msg...) pr_warning(msg)
|
||||
#define IP_VS_ERR_RL(msg...) \
|
||||
#define IP_VS_ERR_RL(msg, ...) \
|
||||
do { \
|
||||
if (net_ratelimit()) \
|
||||
pr_err(msg); \
|
||||
pr_err(msg, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#ifdef CONFIG_IP_VS_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user