|
|
8cce6c |
From de76174a6e76bf29c5a3cdcdab1b16ca96a0b4db Mon Sep 17 00:00:00 2001
|
|
|
8cce6c |
From: Phil Sutter <phil@nwl.cc>
|
|
|
8cce6c |
Date: Thu, 31 Jan 2019 16:12:53 +0100
|
|
|
8cce6c |
Subject: [PATCH] arptables-nft: Remove space between *cnt= and value
|
|
|
8cce6c |
|
|
|
8cce6c |
When printing rule counters, call xtables_print_num() with FMT_NOTABLE
|
|
|
8cce6c |
bit set to avoid spaces between equal sign and value.
|
|
|
8cce6c |
|
|
|
8cce6c |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
8cce6c |
Signed-off-by: Florian Westphal <fw@strlen.de>
|
|
|
8cce6c |
(cherry picked from commit 9421327926a529ec8300d37f3be8a6cfab701786)
|
|
|
8cce6c |
Signed-off-by: Phil Sutter <psutter@redhat.com>
|
|
|
8cce6c |
---
|
|
|
8cce6c |
iptables/nft-arp.c | 4 ++--
|
|
|
8cce6c |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
8cce6c |
|
|
|
8cce6c |
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c
|
|
|
8cce6c |
index 56021223bdbe6..f357fc4a43c4c 100644
|
|
|
8cce6c |
--- a/iptables/nft-arp.c
|
|
|
8cce6c |
+++ b/iptables/nft-arp.c
|
|
|
8cce6c |
@@ -605,9 +605,9 @@ nft_arp_print_rule(struct nftnl_rule *r, unsigned int num, unsigned int format)
|
|
|
8cce6c |
|
|
|
8cce6c |
if (!(format & FMT_NOCOUNTS)) {
|
|
|
8cce6c |
printf(", pcnt=");
|
|
|
8cce6c |
- xtables_print_num(cs.counters.pcnt, format);
|
|
|
8cce6c |
+ xtables_print_num(cs.counters.pcnt, format | FMT_NOTABLE);
|
|
|
8cce6c |
printf("-- bcnt=");
|
|
|
8cce6c |
- xtables_print_num(cs.counters.bcnt, format);
|
|
|
8cce6c |
+ xtables_print_num(cs.counters.bcnt, format | FMT_NOTABLE);
|
|
|
8cce6c |
}
|
|
|
8cce6c |
|
|
|
8cce6c |
if (!(format & FMT_NONEWLINE))
|
|
|
8cce6c |
--
|
|
|
8cce6c |
2.20.1
|
|
|
8cce6c |
|