netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iptables PATCH 1/3] extensions: libebt_stp: Eliminate duplicate space in output
@ 2022-10-01 23:39 Phil Sutter
  2022-10-01 23:39 ` [iptables PATCH 2/3] extensions: libip6t_dst: Fix output for empty options Phil Sutter
  2022-10-01 23:39 ` [iptables PATCH 3/3] extensions: TCPOPTSTRIP: Do not print " Phil Sutter
  0 siblings, 2 replies; 3+ messages in thread
From: Phil Sutter @ 2022-10-01 23:39 UTC (permalink / raw)
  To: netfilter-devel

No need for print_range() to print a trailing whitespace, caller does
this already.

Fixes: fd8d7d7e5d911 ("ebtables-nft: add stp match")
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 extensions/libebt_stp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/extensions/libebt_stp.c b/extensions/libebt_stp.c
index 3e9e24474eb61..41059baae7078 100644
--- a/extensions/libebt_stp.c
+++ b/extensions/libebt_stp.c
@@ -146,9 +146,9 @@ static int parse_range(const char *portstring, void *lower, void *upper,
 static void print_range(unsigned int l, unsigned int u)
 {
 	if (l == u)
-		printf("%u ", l);
+		printf("%u", l);
 	else
-		printf("%u:%u ", l, u);
+		printf("%u:%u", l, u);
 }
 
 static int
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-01 23:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-01 23:39 [iptables PATCH 1/3] extensions: libebt_stp: Eliminate duplicate space in output Phil Sutter
2022-10-01 23:39 ` [iptables PATCH 2/3] extensions: libip6t_dst: Fix output for empty options Phil Sutter
2022-10-01 23:39 ` [iptables PATCH 3/3] extensions: TCPOPTSTRIP: Do not print " Phil Sutter

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).