From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wang Sheng-Hui Subject: [PATCH] eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init Date: Mon, 14 Apr 2014 13:37:04 +0800 Message-ID: <534B7400.3050905@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: dev-VfR2kkLFssw@public.gmane.org Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Print the maximum lcore(s) as configured, and the number of lcore(s) detected on eal cpu init as debug info besides the not separate detected/not-detected lcore info. Signed-off-by: Wang Sheng-Hui --- lib/librte_eal/linuxapp/eal/eal_lcore.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_lcore.c b/lib/librte_eal/linuxapp/eal/eal_lcore.c index d310d85..da20fa3 100644 --- a/lib/librte_eal/linuxapp/eal/eal_lcore.c +++ b/lib/librte_eal/linuxapp/eal/eal_lcore.c @@ -182,6 +182,9 @@ rte_eal_cpu_init(void) } /* Set the count of enabled logical cores of the EAL configuration */ config->lcore_count = count; + 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); return 0; } -- 1.8.3.2