Skip to content

drop warning messages from stmt_print_json()/expr_print_json()

Thomas Haller netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 11 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2json: drop handling missing json() hook in expr_print_json()src/expression.c src/json.c+10 -205 replies
2/2json: drop warning on stderr for missing json() hook in stmt_print_json()src/json.c src/statement.c+9 -26 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH nft v3 0/2] drop warning messages from stmt_print_json()/expr_print_json()

The second patch "json: drop warning on stderr for missing json() hook in stmt_print_json()" is important to add .json-nft tests from

Subject: [PATCH nft 0/7] add and check dump files for JSON in tests/shell
Date: Tue, 31 Oct 2023 19:53:26 +0100

(while fixing the bug in stmt_print_json()/chain_stmt_ops.json might take longer).

This replaces v1:

Subject: [PATCH nft 2/7] json: drop messages "warning: stmt ops chain have no json callback"
Date: Tue, 31 Oct 2023 19:53:28 +0100

and v2:

Subject: [PATCH nft 1/2] json: implement json() hook for "symbol_expr_ops"/"variabl_expr_ops"
Subject: [PATCH nft 2/2] json: drop handling missing json() hook for "struct expr_ops"
Date: Thu, 2 Nov 2023 12:20:28 +0100

Thomas Haller (2):
json: drop handling missing json() hook in expr_print_json()
json: drop warning on stderr for missing json() hook in
stmt_print_json()

 src/expression.c |  2 ++
 src/json.c       | 38 ++++++++++++++++----------------------
 src/statement.c  |  1 +
 3 files changed, 19 insertions(+), 22 deletions(-)
Signature · 1 line
2.41.0