]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: libebt_stp: Eliminate duplicate space in output
authorPhil Sutter <phil@nwl.cc>
Fri, 30 Sep 2022 22:15:35 +0000 (00:15 +0200)
committerPhil Sutter <phil@nwl.cc>
Sat, 1 Oct 2022 23:35:20 +0000 (01:35 +0200)
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

index 3e9e24474eb618a0ab103392e340c6faf7a74ca4..41059baae70788a15324364469b0681af49e995c 100644 (file)
@@ -146,9 +146,9 @@ out:
 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