From patchwork Tue Apr 23 07:16:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Haller X-Patchwork-Id: 1089102 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44pF9q6mM1z9sMx for ; Tue, 23 Apr 2019 17:16:31 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726155AbfDWHQ3 (ORCPT ); Tue, 23 Apr 2019 03:16:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57190 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbfDWHQ2 (ORCPT ); Tue, 23 Apr 2019 03:16:28 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A2EBB87623; Tue, 23 Apr 2019 07:16:28 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-94.ams2.redhat.com [10.36.116.94]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9CA1819C78; Tue, 23 Apr 2019 07:16:27 +0000 (UTC) From: Thomas Haller To: netdev@vger.kernel.org Cc: stephen@networkplumber.org, Thomas Haller Subject: [PATCH 1/4] iprule: avoid printing extra space after gateway for nat action Date: Tue, 23 Apr 2019 09:16:12 +0200 Message-Id: <20190423071615.19729-1-thaller@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 23 Apr 2019 07:16:28 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org For all other actions we avoid the trailing space, so do it here as well. Signed-off-by: Thomas Haller --- 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); }