diff mbox series

[1/4] iprule: avoid printing extra space after gateway for nat action

Message ID 20190423071615.19729-1-thaller@redhat.com
State Accepted
Delegated to: stephen hemminger
Headers show
Series [1/4] iprule: avoid printing extra space after gateway for nat action | expand

Commit Message

Thomas Haller April 23, 2019, 7:16 a.m. UTC
For all other actions we avoid the trailing space, so do it here
as well.

Signed-off-by: Thomas Haller <thaller@redhat.com>
---
 ip/iprule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Hemminger April 24, 2019, 10:14 p.m. UTC | #1
On Tue, 23 Apr 2019 09:16:12 +0200
Thomas Haller <thaller@redhat.com> wrote:

> For all other actions we avoid the trailing space, so do it here
> as well.
> 
> Signed-off-by: Thomas Haller <thaller@redhat.com>

Looks good, applied all 4 patches.
diff mbox series

Patch

diff --git a/ip/iprule.c b/ip/iprule.c
index 83aef38e..2479c3ab 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -443,7 +443,7 @@  int print_rule(struct nlmsghdr *n, void *arg)
 			gateway = format_host_rta(frh->family, tb[RTA_GATEWAY]);
 
 			print_string(PRINT_ANY, "nat_gateway",
-				     "map-to %s ", gateway);
+				     "map-to %s", gateway);
 		} else {
 			print_null(PRINT_ANY, "masquerade", "masquerade", NULL);
 		}