diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-07-16 22:01:04 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:37 +0100 |
commit | 15539a1f5689beb00a84df87d698ee8f06824bb9 (patch) | |
tree | e64ec240d2af81a5280d35ea97f78377146477e4 /iptables | |
parent | 1c73b54e826ffd28e94987b6ced51c4049661793 (diff) |
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>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/xtables-events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/xtables-events.c b/iptables/xtables-events.c index d4542f0b..64ae9726 100644 --- a/iptables/xtables-events.c +++ b/iptables/xtables-events.c @@ -46,7 +46,7 @@ static int table_cb(const struct nlmsghdr *nlh, int type) 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 @@ static int chain_cb(const struct nlmsghdr *nlh, int type) 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); |