From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1A408A0C53; Wed, 1 Sep 2021 08:23:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C52A040140; Wed, 1 Sep 2021 08:23:02 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 54C144013F for ; Wed, 1 Sep 2021 08:23:00 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="304220099" X-IronPort-AV: E=Sophos;i="5.84,368,1620716400"; d="scan'208,223";a="304220099" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 23:22:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,368,1620716400"; d="scan'208,223";a="498667001" Received: from npg-npf-wlpr-srv02.iind.intel.com ([10.190.213.104]) by fmsmga008.fm.intel.com with ESMTP; 31 Aug 2021 23:22:58 -0700 From: Aman Singh To: dev@dpdk.org Date: Wed, 1 Sep 2021 11:48:21 +0530 Message-Id: <20210901061821.5259-1-aman.deep.singh@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] eal: add log to print dpdk version at start X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >From the logs it is difficult to get the DPDK version that was used. So added a debug log to print the same. The log has been added in eal_init so it gets printed at startup for any application. Signed-off-by: Aman Singh --- lib/eal/freebsd/eal.c | 2 +- lib/eal/linux/eal.c | 2 +- lib/eal/windows/eal.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c index 6cee5ae369..a14a205f4d 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -958,7 +958,7 @@ rte_eal_init(int argc, char **argv) } eal_mcfg_complete(); - + rte_log(RTE_LOG_DEBUG, RTE_LOGTYPE_EAL, "DPDK version: %s\n", rte_version()); return fctret; } diff --git a/lib/eal/linux/eal.c b/lib/eal/linux/eal.c index 3577eaeaa4..a50960cc78 100644 --- a/lib/eal/linux/eal.c +++ b/lib/eal/linux/eal.c @@ -1332,7 +1332,7 @@ rte_eal_init(int argc, char **argv) } eal_mcfg_complete(); - + rte_log(RTE_LOG_DEBUG, RTE_LOGTYPE_EAL, "DPDK version: %s\n", rte_version()); return fctret; } diff --git a/lib/eal/windows/eal.c b/lib/eal/windows/eal.c index 3d8c520412..5e6d5d8930 100644 --- a/lib/eal/windows/eal.c +++ b/lib/eal/windows/eal.c @@ -419,6 +419,7 @@ rte_eal_init(int argc, char **argv) */ rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MAIN); rte_eal_mp_wait_lcore(); + rte_log(RTE_LOG_DEBUG, RTE_LOGTYPE_EAL, "DPDK version: %s\n", rte_version()); return fctret; } -- 2.17.1