diff options
author | mattprost <matt.prost@ni.com> | 2022-03-30 14:43:31 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-04-01 13:26:09 -0700 |
commit | acc731eeb70f948288b5ffcd64dc4b357356cc4e (patch) | |
tree | 8b164e182cbdc819dbbc6db3cdf13668008bf641 /host/lib/utils/log.cpp | |
parent | 9cd80e13c52daf24752b609b4ce9e437f22a33f6 (diff) | |
download | uhd-acc731eeb70f948288b5ffcd64dc4b357356cc4e.tar.gz uhd-acc731eeb70f948288b5ffcd64dc4b357356cc4e.tar.bz2 uhd-acc731eeb70f948288b5ffcd64dc4b357356cc4e.zip |
log: Add DPDK version to system info
Log installed DPDK version on boot.
Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to 'host/lib/utils/log.cpp')
-rw-r--r-- | host/lib/utils/log.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
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 <memory> #include <mutex> #include <thread> +#ifdef HAVE_DPDK +#include <uhdlib/transport/dpdk/common.hpp> +#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"); } |