xtables-events: fix missing newline in table and chain events
Add missing newline while printing table and chain events.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
diff --git a/iptables/xtables-events.c b/iptables/xtables-events.c
index d4542f0..64ae972 100644
--- a/iptables/xtables-events.c
+++ b/iptables/xtables-events.c
@@ -46,7 +46,7 @@
nft_table_snprintf(buf, sizeof(buf), t, NFT_TABLE_O_DEFAULT, 0);
/* FIXME: define syntax to represent table events */
- printf("# [table: %s]\t%s", type == NFT_MSG_NEWTABLE ? "NEW" : "DEL", buf);
+ printf("# [table: %s]\t%s\n", type == NFT_MSG_NEWTABLE ? "NEW" : "DEL", buf);
err_free:
nft_table_free(t);
@@ -109,7 +109,7 @@
nft_chain_snprintf(buf, sizeof(buf), t, NFT_CHAIN_O_DEFAULT, 0);
/* FIXME: define syntax to represent chain events */
- printf("# [chain: %s]\t%s", type == NFT_MSG_NEWCHAIN ? "NEW" : "DEL", buf);
+ printf("# [chain: %s]\t%s\n", type == NFT_MSG_NEWCHAIN ? "NEW" : "DEL", buf);
err_free:
nft_chain_free(t);