Blame SOURCES/0046-ct-use-nft_print-instead-of-printf.patch

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