[Devel] [RFC 51/54] nf_log: fix CONFIG_VE=n build

Eva Kurchatova eva.kurchatova at virtuozzo.com
Wed Apr 29 22:58:51 MSK 2026


Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
 net/netfilter/nf_log.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c
index 5c481cffc250..44be8043d233 100644
--- a/net/netfilter/nf_log.c
+++ b/net/netfilter/nf_log.c
@@ -307,7 +307,11 @@ EXPORT_SYMBOL_GPL(nf_log_buf_open);
 void nf_log_buf_close(struct nf_log_buf *m, struct net *net)
 {
 	m->buf[m->count] = 0;
+#ifdef CONFIG_VE
 	ve_log_printk(net->owner_ve, "%s\n", m->buf);
+#else
+	printk("%s\n", m->buf);
+#endif
 
 	if (likely(m != &emergency))
 		kfree(m);
-- 
2.54.0



More information about the Devel mailing list