diff --git a/srsue/src/ue_base.cc b/srsue/src/ue_base.cc index daab53936..ed3bd4ee9 100644 --- a/srsue/src/ue_base.cc +++ b/srsue/src/ue_base.cc @@ -133,15 +133,16 @@ std::string ue_base::get_build_mode() std::string ue_base::get_build_info() { + if (std::string(srslte_get_build_info()) == "") { + return std::string(srslte_get_version()); + } return std::string(srslte_get_build_info()); } std::string ue_base::get_build_string() { std::stringstream ss; - if (get_build_mode() != "" && get_build_info() != "") { - ss << "Built in " << get_build_mode() << " mode using " << get_build_info() << "." << std::endl; - } + ss << "Built in " << get_build_mode() << " mode using " << get_build_info() << "." << std::endl; return ss.str(); }