From 1967b4f67cfbb64d12fc4953db35e3d7aa5f773e Mon Sep 17 00:00:00 2001 From: Elise Lennion Date: Wed, 18 Jan 2017 21:06:47 -0200 Subject: src: Honor obligatory stateless printing of flow tables Always print flow statement as stateless expressions, given that this just defines the flow table statement instance that is allocated per entry. Signed-off-by: Elise Lennion --- src/statement.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/statement.c') diff --git a/src/statement.c b/src/statement.c index 25bed65f..9cdabbb9 100644 --- a/src/statement.c +++ b/src/statement.c @@ -117,8 +117,13 @@ static void flow_stmt_print(const struct stmt *stmt) printf("{ "); expr_print(stmt->flow.key); printf(" "); + + stateless_output++; stmt_print(stmt->flow.stmt); + stateless_output--; + printf("} "); + } static void flow_stmt_destroy(struct stmt *stmt) -- cgit v1.2.3