]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
monitor: Add missing newline to error message
authorPhil Sutter <phil@nwl.cc>
Wed, 16 Oct 2019 18:27:20 +0000 (20:27 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 17 Oct 2019 10:47:23 +0000 (12:47 +0200)
These shouldn't happen in practice and printing to stderr is not the
right thing either, but fix this anyway.

Fixes: f9563c0feb24d ("src: add events reporting")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
src/monitor.c

index 40c381149cdaae9e89c2fde10d1f9e9ef5df9b77..20810a5de0cfb36c3bc03e6c98e7e42f438282a0 100644 (file)
@@ -388,7 +388,7 @@ static int netlink_events_setelem_cb(const struct nlmsghdr *nlh, int type,
 
        set = set_lookup_global(family, table, setname, &monh->ctx->nft->cache);
        if (set == NULL) {
-               fprintf(stderr, "W: Received event for an unknown set.");
+               fprintf(stderr, "W: Received event for an unknown set.\n");
                goto out;
        }