summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-10-16 20:27:20 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-17 12:47:23 +0200
commit4e450ef17a8db08151546ed41b81647db5ba3bfe (patch)
tree543364b64c48a133e7538b71cd4162526bedc4a5
parent0ef5429f87dee067c8a70ef9d5b477198c803fcc (diff)
monitor: Add missing newline to error message
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>
-rw-r--r--src/monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.c b/src/monitor.c
index 40c38114..20810a5d 100644
--- a/src/monitor.c
+++ b/src/monitor.c
@@ -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;
}