netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: pablo@netfilter.org
Subject: [nft PATCH] monitor: fix missing space after chain name
Date: Tue, 07 Apr 2015 17:05:14 +0200	[thread overview]
Message-ID: <20150407150514.1615.70626.stgit@nfdev2.cica.es> (raw)

Due to change f3ff9e9 ("rule: delete extra space in rule indentation") in
function rule_print(), a missing space happens in monitor.

before this patch:
 % nft monitor
 add rule ip test-table test-chainip protocol tcp

after this patch:
 % nft monitor
 add rule ip test-table test-chain ip protocol tcp

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 src/netlink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/netlink.c b/src/netlink.c
index f957295..c118502 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -1869,7 +1869,7 @@ static int netlink_events_rule_cb(const struct nlmsghdr *nlh, int type,
 			r = netlink_delinearize_rule(monh->ctx, nlr);
 			nlr_for_each_set(nlr, rule_map_decompose_cb, NULL);
 
-			printf("add rule %s %s %s", family, table, chain);
+			printf("add rule %s %s %s ", family, table, chain);
 			rule_print(r);
 			printf("\n");
 


             reply	other threads:[~2015-04-07 15:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-07 15:05 Arturo Borrero Gonzalez [this message]
2015-04-08 17:06 ` [nft PATCH] monitor: fix missing space after chain name Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150407150514.1615.70626.stgit@nfdev2.cica.es \
    --to=arturo.borrero.glez@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).