aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_vs.h
diff options
context:
space:
mode:
authorHannes Eder <heder@google.com>2009-08-02 07:05:41 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-02 21:29:30 -0400
commit1e3e238e9c4bf9987b19185235cd0cdc21ea038c (patch)
treec58e2f1954ccb86ad1cca93ef269200cb183403c /include/net/ip_vs.h
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/ip_vs.h')
-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 910820327bc4..1c8ee1b13651 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,
150#endif 150#endif
151 151
152#define IP_VS_BUG() BUG() 152#define IP_VS_BUG() BUG()
153#define IP_VS_ERR(msg...) pr_err(msg) 153#define IP_VS_ERR_RL(msg, ...) \
154#define IP_VS_INFO(msg...) pr_info(msg)
155#define IP_VS_WARNING(msg...) pr_warning(msg)
156#define IP_VS_ERR_RL(msg...) \
157 do { \ 154 do { \
158 if (net_ratelimit()) \ 155 if (net_ratelimit()) \
159 pr_err(msg); \ 156 pr_err(msg, ##__VA_ARGS__); \
160 } while (0) 157 } while (0)
161 158
162#ifdef CONFIG_IP_VS_DEBUG 159#ifdef CONFIG_IP_VS_DEBUG