From f48a8d679741337997a8f1fcc9afca739a11ea24 Mon Sep 17 00:00:00 2001 From: Pascal Mazon Date: Thu, 2 Feb 2017 17:17:59 +0100 Subject: [PATCH] net/tap: fix log level of errors Signed-off-by: Pascal Mazon Acked-by: Keith Wiles --- 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 805eb8a9b4..07c83377a1 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -595,20 +595,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; } @@ -639,7 +639,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; } @@ -656,7 +656,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.20.1