From patchwork Wed Aug 23 18:21:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Rose X-Patchwork-Id: 805148 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pgfNbvIa"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xcwmd5vNDz9s7v for ; Thu, 24 Aug 2017 04:24:01 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 5271FBE4; Wed, 23 Aug 2017 18:22:00 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 2590ABCF for ; Wed, 23 Aug 2017 18:21:53 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 19835E0 for ; Wed, 23 Aug 2017 18:21:53 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id 189so251485pgj.0 for ; Wed, 23 Aug 2017 11:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0+aUV5igeT+9+FLHYM4g+qIb6RSjylqrQrjIkbzhqlA=; b=pgfNbvIaIZcoQmB5l0qBs7PcZQ4JyZOkPL8VqlXVfKu4pBjGo5dvFMkdHZtsnu1H2u YBk8IiwLfidhI87CfC79zNJsUN0ydG+u2M3lWmaCBdTyLr2ib36vjQMuVZI3+JRbxTbo QGc+ZM58i8m2HRID4Ii4YUbXxk8YWtZaNP5Hh3rbYdysZtBAoUaHIFLizLm7zLSPGL/4 MSSxxYHai29Bv4NqiUhjdXMboGdlRQPA8FtTArQyYcOyoo6tnkUc28TdCWUL2PIFFDQj toKj4zE/IEkyzuaBlvOA1yGO4jvD3S7W0z/HWDftef9WB4x5NFkg3YSRwddFCuFRKvY5 ZGvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0+aUV5igeT+9+FLHYM4g+qIb6RSjylqrQrjIkbzhqlA=; b=MCRRmAfWCtxWZTNE30sApn2gsGbl2F3Rr9fSrp82SkH5EqXxsrOn8grOiNE43nourY Oh50/oMpS9E0Vu1YRWwHI6ntKZIfBF/eZhpRD1H8i/C4wOnTFbo5LLQ4Po2CtoNoFveS AMnbMgLt2afhNl1ZA4gjqJu4ttmlhCQ9sIVHAYklqFl/TWhJ4/ofslh8KbEQQVpD1mI/ u4DHraEH2ZvELM38GkoB189lVawIrljIlT8odKthNefpLY/+dxSzCYUueUd7AqzHL4q0 yY7PlzvFRrA6gKWxKkJLBXWn9CH+Cpxv8NdLTa62lMhX6mDryGMmpjU7LzkCfuvH7xj0 G26A== X-Gm-Message-State: AHYfb5g26sRlAcYHoKd+D8mXrui3EqgmDW+fs1NL89XK1fyy2/pE/Dzf Q2oLiXIbgdNEES+Z X-Received: by 10.98.24.21 with SMTP id 21mr3701391pfy.190.1503512512489; Wed, 23 Aug 2017 11:21:52 -0700 (PDT) Received: from gizo.domain (67-5-157-64.ptld.qwest.net. [67.5.157.64]) by smtp.gmail.com with ESMTPSA id c63sm4233822pfd.187.2017.08.23.11.21.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Aug 2017 11:21:51 -0700 (PDT) From: Greg Rose To: dev@openvswitch.org Date: Wed, 23 Aug 2017 11:21:41 -0700 Message-Id: <1503512502-8836-4-git-send-email-gvrose8192@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1503512502-8836-1-git-send-email-gvrose8192@gmail.com> References: <1503512502-8836-1-git-send-email-gvrose8192@gmail.com> Subject: [ovs-dev] [PATCH 4/5] datapath: Remove unnecessary newlines from OVS_NLERR uses X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Upstream commit: commit 0ed80da518a1f27562a013f106505e495e891fe4 Author: Joe Perches Date: Fri Aug 11 04:26:26 2017 -0700 openvswitch: Remove unnecessary newlines from OVS_NLERR uses OVS_NLERR already adds a newline so these just add blank lines to the logging. Signed-off-by: Joe Perches Acked-by: Joe Stringer Signed-off-by: David S. Miller Signed-off-by: Greg Rose --- datapath/conntrack.c | 14 +++++--------- datapath/flow_netlink.c | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/datapath/conntrack.c b/datapath/conntrack.c index b645ab1..d517a87 100644 --- a/datapath/conntrack.c +++ b/datapath/conntrack.c @@ -1221,15 +1221,13 @@ static int parse_nat(const struct nlattr *attr, int type = nla_type(a); if (type > OVS_NAT_ATTR_MAX) { - OVS_NLERR(log, - "Unknown NAT attribute (type=%d, max=%d).\n", + OVS_NLERR(log, "Unknown NAT attribute (type=%d, max=%d)", type, OVS_NAT_ATTR_MAX); return -EINVAL; } if (nla_len(a) != ovs_nat_attr_lens[type][ip_vers]) { - OVS_NLERR(log, - "NAT attribute type %d has unexpected length (%d != %d).\n", + OVS_NLERR(log, "NAT attribute type %d has unexpected length (%d != %d)", type, nla_len(a), ovs_nat_attr_lens[type][ip_vers]); return -EINVAL; @@ -1239,9 +1237,7 @@ static int parse_nat(const struct nlattr *attr, case OVS_NAT_ATTR_SRC: case OVS_NAT_ATTR_DST: if (info->nat) { - OVS_NLERR(log, - "Only one type of NAT may be specified.\n" - ); + OVS_NLERR(log, "Only one type of NAT may be specified"); return -ERANGE; } info->nat |= OVS_CT_NAT; @@ -1291,13 +1287,13 @@ static int parse_nat(const struct nlattr *attr, break; default: - OVS_NLERR(log, "Unknown nat attribute (%d).\n", type); + OVS_NLERR(log, "Unknown nat attribute (%d)", type); return -EINVAL; } } if (rem > 0) { - OVS_NLERR(log, "NAT attribute has %d unknown bytes.\n", rem); + OVS_NLERR(log, "NAT attribute has %d unknown bytes", rem); return -EINVAL; } if (!info->nat) { diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c index 9b48612..df9d88e 100644 --- a/datapath/flow_netlink.c +++ b/datapath/flow_netlink.c @@ -1257,7 +1257,7 @@ static int ovs_key_from_nlattrs(struct net *net, struct sw_flow_match *match, } if (!is_mask && ipv6_key->ipv6_label & htonl(0xFFF00000)) { - OVS_NLERR(log, "IPv6 flow label %x is out of range (max=%x).\n", + OVS_NLERR(log, "IPv6 flow label %x is out of range (max=%x)", ntohl(ipv6_key->ipv6_label), (1 << 20) - 1); return -EINVAL; }