From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49])
 by dpdk.org (Postfix) with ESMTP id 41D852C18
 for <dev@dpdk.org>; Fri, 22 Apr 2016 15:44:22 +0200 (CEST)
Received: by mail-wm0-f49.google.com with SMTP id v188so21681390wme.1
 for <dev@dpdk.org>; Fri, 22 Apr 2016 06:44:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=6wind-com.20150623.gappssmtp.com; s=20150623;
 h=from:to:subject:date:message-id:in-reply-to:references;
 bh=ZEvs0jQ6ABbhXksPHi4w98ePvIL3fY4ZrbUxJuPC6F0=;
 b=JGTnQy4+dG8LGeZKdb59OULctAcwUmci6vU0ob8XCJXeaD+hbBIsPi7yS2638K5PwN
 1tGglp7cLjey5na2MgkQpJ5GExGy0qJfgRTJ4UNUdvASjWBqdtqj5QVMybk7Wu3EtG5b
 nGNNa9poef42zgjaJUxIJ2n+tVITrKGsXFn+nc0UIxZAg6DJqU3MQZUYdYXedK/6DkWx
 zxpAfahVt1dxrSBavOtiGHo5uSyh9hBMxPvenPoZroE+FEKmZrWEp+s8IE1t96bigS4H
 5gaWCFf0gPGVzzHnR5Ab5RsWqJSDur7GyDR/Q+7rAcK5Z3b0Xe0bzS38XB9drOkyRW2R
 WvKg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
 :references;
 bh=ZEvs0jQ6ABbhXksPHi4w98ePvIL3fY4ZrbUxJuPC6F0=;
 b=UtuUGfHquO32TVc282ofP6G4HeQ3+9CYo+MpAzk5iZH/JK6Q0jDB8XmeSDIJdI+UxU
 Wt2YzXd+RwspdfkQIVhJhkwLkZ0NoQCr+axQEyk2oCwz0FJqitMF4N2mMhsSV1++izzg
 IxCrzG4v80Fm07ucFY2GnKif8sZfPatM7i4th74XLFn5VgCRClgXSrfvpfBMZMXFdYwN
 c1a6QMpHzwgYsB4LDXIS1+wGgZmkQZRFCO4ZZlSq+ai02i/JyWKnVY/mC5Z7QKBORdpi
 MLWYIlcTa1HQjM9GxbTP87vKBVGljaamfW2d976SZSXk4kNvjuYCcWlcUSftCHQ4+7Xk
 LBIQ==
X-Gm-Message-State: AOPr4FV/Bbtt9hzqNMB4AbEtGG4ZirD+SahKE5t8DzGP6o0eSNaMlzeTAuS/4W2QIivHexSY
X-Received: by 10.194.16.133 with SMTP id g5mr20771832wjd.42.1461332662058;
 Fri, 22 Apr 2016 06:44:22 -0700 (PDT)
Received: from XPS13.livebox.home
 (APoitiers-658-1-12-134.w86-213.abo.wanadoo.fr. [86.213.195.134])
 by smtp.gmail.com with ESMTPSA id qt3sm8149097wjc.32.2016.04.22.06.44.21
 for <dev@dpdk.org> (version=TLSv1/SSLv3 cipher=OTHER);
 Fri, 22 Apr 2016 06:44:21 -0700 (PDT)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: dev@dpdk.org
Date: Fri, 22 Apr 2016 15:43:57 +0200
Message-Id: <1461332640-24273-2-git-send-email-thomas.monjalon@6wind.com>
X-Mailer: git-send-email 2.7.0
In-Reply-To: <1461332640-24273-1-git-send-email-thomas.monjalon@6wind.com>
References: <1461332640-24273-1-git-send-email-thomas.monjalon@6wind.com>
Subject: [dpdk-dev] [PATCH 1/4] eal: increase log level of some messages
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Apr 2016 13:44:22 -0000

Some relevant EAL logs are raised from debug to info level in order to
show the available number of cores and the detected devices.
The driver ids and name are logged only if the device is not blacklisted.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 lib/librte_eal/common/eal_common_lcore.c | 2 +-
 lib/librte_eal/common/eal_common_pci.c   | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/librte_eal/common/eal_common_lcore.c b/lib/librte_eal/common/eal_common_lcore.c
index a4263ba..2cd4132 100644
--- a/lib/librte_eal/common/eal_common_lcore.c
+++ b/lib/librte_eal/common/eal_common_lcore.c
@@ -104,7 +104,7 @@ rte_eal_cpu_init(void)
 	RTE_LOG(DEBUG, EAL,
 		"Support maximum %u logical core(s) by configuration.\n",
 		RTE_MAX_LCORE);
-	RTE_LOG(DEBUG, EAL, "Detected %u lcore(s)\n", config->lcore_count);
+	RTE_LOG(INFO, EAL, "Detected %u lcore(s)\n", config->lcore_count);
 
 	return 0;
 }
diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c
index 40f4922..3cae4cb 100644
--- a/lib/librte_eal/common/eal_common_pci.c
+++ b/lib/librte_eal/common/eal_common_pci.c
@@ -165,13 +165,10 @@ rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *d
 
 		struct rte_pci_addr *loc = &dev->addr;
 
-		RTE_LOG(DEBUG, EAL, "PCI device "PCI_PRI_FMT" on NUMA socket %i\n",
+		RTE_LOG(INFO, EAL, "PCI device "PCI_PRI_FMT" on NUMA socket %i\n",
 				loc->domain, loc->bus, loc->devid, loc->function,
 				dev->numa_node);
 
-		RTE_LOG(DEBUG, EAL, "  probe driver: %x:%x %s\n", dev->id.vendor_id,
-				dev->id.device_id, dr->name);
-
 		/* no initialization when blacklisted, return without error */
 		if (dev->devargs != NULL &&
 			dev->devargs->type == RTE_DEVTYPE_BLACKLISTED_PCI) {
@@ -179,6 +176,9 @@ rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *d
 			return 1;
 		}
 
+		RTE_LOG(INFO, EAL, "  probe driver: %x:%x %s\n", dev->id.vendor_id,
+				dev->id.device_id, dr->name);
+
 		if (dr->drv_flags & RTE_PCI_DRV_NEED_MAPPING) {
 			/* map resources for devices that use igb_uio */
 			ret = rte_eal_pci_map_device(dev);
-- 
2.7.0