aboutsummaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorHannes Eder <heder@google.com>2009-08-02 11:05:41 +0000
committerDavid S. Miller <davem@davemloft.net>2009-08-02 18:29:30 -0700
commit1e3e238e9c4bf9987b19185235cd0cdc21ea038c (patch)
treec58e2f1954ccb86ad1cca93ef269200cb183403c /include/net
parentbcd218be5aebed94951a750b1d477aea86fb68ea (diff)
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ip_vs.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 910820327bc..1c8ee1b1365 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -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