]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables-events: fix missing newline in table and chain events
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 16 Jul 2013 20:01:04 +0000 (22:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:37 +0000 (23:50 +0100)
Add missing newline while printing table and chain events.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/xtables-events.c

index d4542f0bd5c8b9ef8c9b2fcca3d524111a4ae36b..64ae9726c3a7e19dab86695292c4943f91e10de4 100644 (file)
@@ -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);