34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From 5d255c91b90a3480d084c50c6c61bb3dcd380ab7 Mon Sep 17 00:00:00 2001
|
|
From: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
Date: Fri, 5 Apr 2019 15:36:48 +0200
|
|
Subject: [PATCH] ct: use nft_print() instead of printf()
|
|
|
|
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
(cherry picked from commit e07be57df3f5191d23b05c4fb06a94f3961beb13)
|
|
|
|
Conflicts:
|
|
-> Change applied manually due to missing commit 4795a994e2810
|
|
("src: use 'flow add' syntax")
|
|
|
|
Signed-off-by: Phil Sutter <psutter@redhat.com>
|
|
---
|
|
src/ct.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/ct.c b/src/ct.c
|
|
index 1d50382bab8b1..f019f5af3e182 100644
|
|
--- a/src/ct.c
|
|
+++ b/src/ct.c
|
|
@@ -481,7 +481,7 @@ struct stmt *notrack_stmt_alloc(const struct location *loc)
|
|
static void flow_offload_stmt_print(const struct stmt *stmt,
|
|
struct output_ctx *octx)
|
|
{
|
|
- printf("flow offload @%s", stmt->flow.table_name);
|
|
+ nft_print(octx, "flow offload @%s", stmt->flow.table_name);
|
|
}
|
|
|
|
static const struct stmt_ops flow_offload_stmt_ops = {
|
|
--
|
|
2.21.0
|
|
|