Message ID | 20191016230322.24432-2-phil@nwl.cc |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
Series | A bunch of fixes for --echo option | expand |
Phil Sutter <phil@nwl.cc> wrote: > 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") Acked-by: Florian Westphal <fw@strlen.de>
On Thu, Oct 17, 2019 at 01:03:19AM +0200, Phil Sutter wrote: > 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: Pablo Neira Ayuso <pablo@netfilter.org> > --- > src/monitor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/monitor.c b/src/monitor.c > index 40c381149cdaa..20810a5de0cfb 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; > } > > -- > 2.23.0 >
diff --git a/src/monitor.c b/src/monitor.c index 40c381149cdaa..20810a5de0cfb 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; }
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> --- src/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)