From patchwork Wed Aug 16 12:27:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roi Dayan X-Patchwork-Id: 802047 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=) 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 3xXTCF430pz9sRg for ; Wed, 16 Aug 2017 22:28:09 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id CD32DDE0; Wed, 16 Aug 2017 12:28:07 +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 E5D79DD9 for ; Wed, 16 Aug 2017 12:28:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id BC2DDE2 for ; Wed, 16 Aug 2017 12:28:05 +0000 (UTC) Received: from Internal Mail-Server by MTLPINE1 (envelope-from roid@mellanox.com) with ESMTPS (AES256-SHA encrypted); 16 Aug 2017 15:27:54 +0300 Received: from dev-r-vrt-189.mtr.labs.mlnx (dev-r-vrt-189.mtr.labs.mlnx [10.212.189.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v7GCRslA018283; Wed, 16 Aug 2017 15:27:54 +0300 From: Roi Dayan To: dev@openvswitch.org Date: Wed, 16 Aug 2017 15:27:52 +0300 Message-Id: <1502886472-61183-1-git-send-email-roid@mellanox.com> X-Mailer: git-send-email 2.8.0 Cc: Simon Horman Subject: [ovs-dev] [PATCH] netdev-tc-offloads: Add prefix to identify source of log msg 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 There is an identical log msg from multiple api calls. Add a prefix to identify the source function of the log msg. Signed-off-by: Roi Dayan Reviewed-by: Paul Blakey --- lib/netdev-tc-offloads.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/netdev-tc-offloads.c b/lib/netdev-tc-offloads.c index e51e638..be6e109 100644 --- a/lib/netdev-tc-offloads.c +++ b/lib/netdev-tc-offloads.c @@ -232,7 +232,7 @@ netdev_tc_flow_flush(struct netdev *netdev) int ifindex = netdev_get_ifindex(netdev); if (ifindex < 0) { - VLOG_ERR_RL(&error_rl, "failed to get ifindex for %s: %s", + VLOG_ERR_RL(&error_rl, "flow_flush: failed to get ifindex for %s: %s", netdev_get_name(netdev), ovs_strerror(-ifindex)); return -ifindex; } @@ -249,7 +249,7 @@ netdev_tc_flow_dump_create(struct netdev *netdev, ifindex = netdev_get_ifindex(netdev); if (ifindex < 0) { - VLOG_ERR_RL(&error_rl, "failed to get ifindex for %s: %s", + VLOG_ERR_RL(&error_rl, "dump_create: failed to get ifindex for %s: %s", netdev_get_name(netdev), ovs_strerror(-ifindex)); return -ifindex; } @@ -682,7 +682,7 @@ netdev_tc_flow_put(struct netdev *netdev, struct match *match, ifindex = netdev_get_ifindex(netdev); if (ifindex < 0) { - VLOG_ERR_RL(&error_rl, "failed to get ifindex for %s: %s", + VLOG_ERR_RL(&error_rl, "flow_put: failed to get ifindex for %s: %s", netdev_get_name(netdev), ovs_strerror(-ifindex)); return -ifindex; } @@ -883,7 +883,7 @@ netdev_tc_flow_get(struct netdev *netdev OVS_UNUSED, ifindex = netdev_get_ifindex(dev); if (ifindex < 0) { - VLOG_ERR_RL(&error_rl, "failed to get ifindex for %s: %s", + VLOG_ERR_RL(&error_rl, "flow_get: failed to get ifindex for %s: %s", netdev_get_name(dev), ovs_strerror(-ifindex)); netdev_close(dev); return -ifindex; @@ -926,7 +926,7 @@ netdev_tc_flow_del(struct netdev *netdev OVS_UNUSED, ifindex = netdev_get_ifindex(dev); if (ifindex < 0) { - VLOG_ERR_RL(&error_rl, "failed to get ifindex for %s: %s", + VLOG_ERR_RL(&error_rl, "flow_del: failed to get ifindex for %s: %s", netdev_get_name(dev), ovs_strerror(-ifindex)); netdev_close(dev); return -ifindex; @@ -951,7 +951,7 @@ netdev_tc_init_flow_api(struct netdev *netdev) ifindex = netdev_get_ifindex(netdev); if (ifindex < 0) { - VLOG_ERR_RL(&error_rl, "failed to get ifindex for %s: %s", + VLOG_ERR_RL(&error_rl, "init: failed to get ifindex for %s: %s", netdev_get_name(netdev), ovs_strerror(-ifindex)); return -ifindex; }