netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@medozas.de>
To: kaber@trash.net
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH 2/3] libxt_devgroup: option whitespace update following v1.4.10-49-g7386635
Date: Wed, 16 Feb 2011 03:18:55 +0100	[thread overview]
Message-ID: <1297822737-11204-3-git-send-email-jengelh@medozas.de> (raw)
In-Reply-To: <1297822737-11204-1-git-send-email-jengelh@medozas.de>

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 extensions/libxt_devgroup.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/extensions/libxt_devgroup.c b/extensions/libxt_devgroup.c
index 893a2fa..2624868 100644
--- a/extensions/libxt_devgroup.c
+++ b/extensions/libxt_devgroup.c
@@ -225,14 +225,14 @@ print_devgroup(unsigned int id, unsigned int mask, int numeric)
 	const char *name = NULL;
 
 	if (mask != 0xffffffff)
-		printf("0x%x/0x%x ", id, mask);
+		printf("0x%x/0x%x", id, mask);
 	else {
 		if (numeric == 0)
 			name = devgroup_id2name(id);
 		if (name)
-			printf("%s ", name);
+			printf("%s", name);
 		else
-			printf("0x%x ", id);
+			printf("0x%x", id);
 	}
 }
 
@@ -241,15 +241,15 @@ static void devgroup_show(const char *pfx, const struct xt_devgroup_info *info,
 {
 	if (info->flags & XT_DEVGROUP_MATCH_SRC) {
 		if (info->flags & XT_DEVGROUP_INVERT_SRC)
-			printf("! ");
-		printf("%ssrc-group ", pfx);
+			printf(" !");
+		printf(" %ssrc-group ", pfx);
 		print_devgroup(info->src_group, info->src_mask, numeric);
 	}
 
 	if (info->flags & XT_DEVGROUP_MATCH_DST) {
 		if (info->flags & XT_DEVGROUP_INVERT_DST)
-			printf("! ");
-		printf("%sdst-group ", pfx);
+			printf(" !");
+		printf(" %sdst-group ", pfx);
 		print_devgroup(info->src_group, info->src_mask, numeric);
 	}
 }
-- 
1.7.1


  parent reply	other threads:[~2011-02-16  2:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-16  2:18 iptables: spaces, spaces Jan Engelhardt
2011-02-16  2:18 ` [PATCH 1/3] ip6tables: spacing fixes for -o argument Jan Engelhardt
2011-02-16  2:18 ` Jan Engelhardt [this message]
2011-02-16  2:18 ` [PATCH 3/3] extensions: fix indent of vtable Jan Engelhardt
2011-02-16 13:23 ` iptables: spaces, spaces Patrick McHardy

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=1297822737-11204-3-git-send-email-jengelh@medozas.de \
    --to=jengelh@medozas.de \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.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).