From acc731eeb70f948288b5ffcd64dc4b357356cc4e Mon Sep 17 00:00:00 2001 From: mattprost Date: Wed, 30 Mar 2022 14:43:31 -0500 Subject: log: Add DPDK version to system info Log installed DPDK version on boot. Signed-off-by: mattprost --- host/lib/utils/log.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'host/lib') diff --git a/host/lib/utils/log.cpp b/host/lib/utils/log.cpp index 031066e65..8596dd1b6 100644 --- a/host/lib/utils/log.cpp +++ b/host/lib/utils/log.cpp @@ -21,6 +21,9 @@ #include #include #include +#ifdef HAVE_DPDK +#include +#endif namespace pt = boost::posix_time; @@ -243,8 +246,11 @@ public: { std::ostringstream sys_info; sys_info << BOOST_PLATFORM << "; " << BOOST_COMPILER << "; " - << "Boost_" << BOOST_VERSION << "; " << uhd::get_component() << "_" - << uhd::get_version_string(); + << "Boost_" << BOOST_VERSION << "; " +#ifdef HAVE_DPDK + << "DPDK_" << RTE_VER_YEAR << "." << RTE_VER_MONTH << "; " +#endif + << uhd::get_component() << "_" << uhd::get_version_string(); _publish_log_msg(sys_info.str(), uhd::log::info, "UHD"); } -- cgit v1.2.3