[Devel] [PATCH rh7 1/2] ve-printk: net_veboth_ratelimited introduced
Vasily Averin
vvs at odin.com
Thu May 14 05:20:59 PDT 2015
net_veboth_ratelimited is required to save net-ratelimited messages
both into host and into containers dmesg buffers
Signed-off-by: Vasily Averin <vvs at openvz.org>
-------------- next part --------------
diff --git a/include/linux/net.h b/include/linux/net.h
index d7b2205..7e59abe 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -249,6 +249,8 @@ do { \
net_ratelimited_function(pr_debug, fmt, ##__VA_ARGS__)
#define net_velog_ratelimited(fmt, ...) \
net_ratelimited_function(ve_printk, VE_LOG, fmt, ##__VA_ARGS__)
+#define net_veboth_ratelimited(fmt, ...) \
+ net_ratelimited_function(ve_printk, VE_LOG_BOTH, fmt, ##__VA_ARGS__)
#define net_random() prandom_u32()
More information about the Devel
mailing list