fixing two more issues reported by lgtm in asn1 libs

master
Andre Puschmann 5 years ago
parent dc9df9f08f
commit 0feb8d1362

@ -736,7 +736,7 @@ public:
{ {
if (s.size() != N) { if (s.size() != N) {
srsasn_log_print( 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()); memset(&octets_[0], 0, nof_octets());
for (uint32_t i = 0; i < N; ++i) for (uint32_t i = 0; i < N; ++i)

@ -153,6 +153,7 @@ srslte::rlc_config_t make_rlc_config_t(const asn1::rrc::srb_to_add_mod_s& asn1_t
} else { } else {
asn1::rrc::rrc_log_print( asn1::rrc::rrc_log_print(
asn1::LOG_LEVEL_ERROR, "SRB %d does not support default initialization type\n", asn1_type.srb_id); asn1::LOG_LEVEL_ERROR, "SRB %d does not support default initialization type\n", asn1_type.srb_id);
return rlc_config_t();
} }
} }

Loading…
Cancel
Save