]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_devgroup: option whitespace update following v1.4.10-49-g7386635
authorJan Engelhardt <jengelh@medozas.de>
Wed, 16 Feb 2011 01:42:21 +0000 (02:42 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Wed, 16 Feb 2011 01:42:21 +0000 (02:42 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_devgroup.c

index 893a2fa6c00ce987205ee8c2a092cade984daca2..262486876cb4df09fffc89f5b3030096b04bb16f 100644 (file)
@@ -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);
        }
 }