From 0e258556f7f3da35deeb6d5cfdec51eafc7db80d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 20 Oct 2020 21:48:16 +0200 Subject: monitor: do not print generation ID with --echo This fixes testcases/sets/0036add_set_element_expiration_0 Signed-off-by: Pablo Neira Ayuso --- src/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/monitor.c') diff --git a/src/monitor.c b/src/monitor.c index 3872ebcf..9e508f8f 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -849,7 +849,7 @@ static int netlink_events_newgen_cb(const struct nlmsghdr *nlh, int type, break; } } - if (genid >= 0) { + if (!nft_output_echo(&monh->ctx->nft->output) && genid >= 0) { nft_mon_print(monh, "# new generation %d", genid); if (pid >= 0) nft_mon_print(monh, " by process %d (%s)", pid, name); -- cgit v1.2.3