iprule: Fix for incorrect space between dst and prefix
Subsystems (2)
PATCH 1/1 iprule: Fix for incorrect space between dst and prefix
This was added by accident when introducing JSON support.
Fixes 0dd4ccc56c0e3 ("iprule: add json support")
Signed-off-by Phil Sutter <[email protected]>
--- ip/iprule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ip/iprule.c +1 -1
@@ -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
Signature · 1 line
2.18.0
Stephen Hemminger
AppliedQuoted 4 lines · On Wed, 29 Aug 2018 15:52:57 +0200 Phil Sutter <[email protected]> wrote:
This was added by accident when introducing JSON support.
Fixes 0dd4ccc56c0e3 ("iprule: add json support")Signed-off-by Phil Sutter <[email protected]>
Applied, thanks.