From 0feb8d1362bf3cfb2806601a61d971986cfe309b Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 29 Nov 2019 13:29:35 +0100 Subject: [PATCH] fixing two more issues reported by lgtm in asn1 libs --- lib/include/srslte/asn1/asn1_utils.h | 2 +- lib/src/asn1/rrc_asn1_utils.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/include/srslte/asn1/asn1_utils.h b/lib/include/srslte/asn1/asn1_utils.h index 1e1e8035e..0e17c564b 100644 --- a/lib/include/srslte/asn1/asn1_utils.h +++ b/lib/include/srslte/asn1/asn1_utils.h @@ -736,7 +736,7 @@ public: { if (s.size() != N) { srsasn_log_print( - srslte::LOG_LEVEL_ERROR, "The provided string size=%d does not match the bit string size=%d\n", s.size(), N); + srslte::LOG_LEVEL_ERROR, "The provided string size=%zd does not match the bit string size=%d\n", s.size(), N); } memset(&octets_[0], 0, nof_octets()); for (uint32_t i = 0; i < N; ++i) diff --git a/lib/src/asn1/rrc_asn1_utils.cc b/lib/src/asn1/rrc_asn1_utils.cc index d9f73f61d..7c549c0cc 100644 --- a/lib/src/asn1/rrc_asn1_utils.cc +++ b/lib/src/asn1/rrc_asn1_utils.cc @@ -153,6 +153,7 @@ srslte::rlc_config_t make_rlc_config_t(const asn1::rrc::srb_to_add_mod_s& asn1_t } else { asn1::rrc::rrc_log_print( asn1::LOG_LEVEL_ERROR, "SRB %d does not support default initialization type\n", asn1_type.srb_id); + return rlc_config_t(); } }