From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 6C1002BE9 for ; Tue, 31 Jan 2017 10:44:53 +0100 (CET) Received: from 6wind.com (unknown [10.16.0.184]) by proxy.6wind.com (Postfix) with SMTP id 14A21265B0; Tue, 31 Jan 2017 10:44:48 +0100 (CET) Received: by 6wind.com (sSMTP sendmail emulation); Tue, 31 Jan 2017 10:43:11 +0100 From: Pascal Mazon To: keith.wiles@intel.com Cc: dev@dpdk.org, Pascal Mazon Date: Tue, 31 Jan 2017 10:42:54 +0100 Message-Id: <1485855778-15496-2-git-send-email-pascal.mazon@6wind.com> X-Mailer: git-send-email 2.8.0.rc0 In-Reply-To: <1485855778-15496-1-git-send-email-pascal.mazon@6wind.com> References: <1485855778-15496-1-git-send-email-pascal.mazon@6wind.com> Subject: [dpdk-dev] [PATCH 2/6] net/tap: use correct channel for error logs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 09:44:53 -0000 Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 8faf08551b9e..4cc1767da5e8 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -594,20 +594,20 @@ eth_dev_tap_create(const char *name, char *tap_name) data = rte_zmalloc_socket(tap_name, sizeof(*data), 0, numa_node); if (!data) { - RTE_LOG(INFO, PMD, "Failed to allocate data\n"); + RTE_LOG(ERR, PMD, "Failed to allocate data\n"); goto error_exit; } pmd = rte_zmalloc_socket(tap_name, sizeof(*pmd), 0, numa_node); if (!pmd) { - RTE_LOG(INFO, PMD, "Unable to allocate internal struct\n"); + RTE_LOG(ERR, PMD, "Unable to allocate internal struct\n"); goto error_exit; } /* Use the name and not the tap_name */ dev = rte_eth_dev_allocate(tap_name); if (!dev) { - RTE_LOG(INFO, PMD, "Unable to allocate device struct\n"); + RTE_LOG(ERR, PMD, "Unable to allocate device struct\n"); goto error_exit; } @@ -638,7 +638,7 @@ eth_dev_tap_create(const char *name, char *tap_name) /* Create the first Tap device */ fd = tun_alloc(tap_name); if (fd < 0) { - RTE_LOG(INFO, PMD, "tun_alloc() failed\n"); + RTE_LOG(ERR, PMD, "tun_alloc() failed\n"); goto error_exit; } @@ -655,7 +655,7 @@ eth_dev_tap_create(const char *name, char *tap_name) pmd->fds[0] = fd; if (pmd_mac_address(fd, dev, &pmd->eth_addr) < 0) { - RTE_LOG(INFO, PMD, "Unable to get MAC address\n"); + RTE_LOG(ERR, PMD, "Unable to get MAC address\n"); goto error_exit; } -- 2.8.0.rc0