netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] iprule: avoid printing extra space after gateway for nat action
@ 2019-04-23  7:16 Thomas Haller
  2019-04-23  7:16 ` [PATCH 2/4] iprule: avoid trailing space in print_rule() after printing protocol Thomas Haller
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thomas Haller @ 2019-04-23  7:16 UTC (permalink / raw)
  To: netdev; +Cc: stephen, Thomas Haller

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

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);
 		}
-- 
2.20.1


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

end of thread, other threads:[~2019-04-24 22:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-23  7:16 [PATCH 1/4] iprule: avoid printing extra space after gateway for nat action Thomas Haller
2019-04-23  7:16 ` [PATCH 2/4] iprule: avoid trailing space in print_rule() after printing protocol Thomas Haller
2019-04-23  7:16 ` [PATCH 3/4] iprule: refactor print_rule() to use leading space before printing attribute Thomas Haller
2019-04-23  7:16 ` [PATCH 4/4] iprule: always print realms keyword for rule Thomas Haller
2019-04-24 22:14 ` [PATCH 1/4] iprule: avoid printing extra space after gateway for nat action Stephen Hemminger

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