diff options
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/utils/log.cpp | 2 | ||||
-rw-r--r-- | host/lib/version.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/utils/log.cpp b/host/lib/utils/log.cpp index 8bcf13ebc..c8d5e07cc 100644 --- a/host/lib/utils/log.cpp +++ b/host/lib/utils/log.cpp @@ -205,7 +205,7 @@ public: std::ostringstream sys_info; sys_info << BOOST_PLATFORM << "; " << BOOST_COMPILER << "; " << "Boost_" << BOOST_VERSION << "; " - << "UHD_" << uhd::get_version_string(); + << uhd::get_component() << "_" << uhd::get_version_string(); _publish_log_msg(sys_info.str(), uhd::log::info, "UHD"); } diff --git a/host/lib/version.cpp b/host/lib/version.cpp index f3c268748..016c46a9f 100644 --- a/host/lib/version.cpp +++ b/host/lib/version.cpp @@ -18,3 +18,7 @@ std::string uhd::get_version_string(void){ std::string uhd::get_abi_string(void){ return UHD_VERSION_ABI_STRING; } + +std::string uhd::get_component(void){ + return "@UHD_COMPONENT@"; +}
\ No newline at end of file |