diff mbox series

[iproute] iprule: Fix for incorrect space between dst and prefix

Message ID 20180829135257.4545-1-phil@nwl.cc
State Superseded, archived
Delegated to: stephen hemminger
Headers show
Series [iproute] iprule: Fix for incorrect space between dst and prefix | expand

Commit Message

Phil Sutter Aug. 29, 2018, 1:52 p.m. UTC
This was added by accident when introducing JSON support.

Fixes: 0dd4ccc56c0e3 ("iprule: add json support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/iprule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Hemminger Aug. 30, 2018, 2:51 p.m. UTC | #1
On Wed, 29 Aug 2018 15:52:57 +0200
Phil Sutter <phil@nwl.cc> wrote:

> This was added by accident when introducing JSON support.
> 
> Fixes: 0dd4ccc56c0e3 ("iprule: add json support")
> Signed-off-by: Phil Sutter <phil@nwl.cc>


Applied, thanks.
diff mbox series

Patch

diff --git a/ip/iprule.c b/ip/iprule.c
index 8b9421431c26a..744d6d88e3433 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -239,7 +239,7 @@  int print_rule(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
 
 		print_string(PRINT_FP, NULL, "to ", NULL);
 		print_color_string(PRINT_ANY, ifa_family_color(frh->family),
-				   "dst", "%s ", dst);
+				   "dst", "%s", dst);
 		if (frh->dst_len != host_len)
 			print_uint(PRINT_ANY, "dstlen", "/%u ", frh->dst_len);
 		else