fixing two more issues reported by lgtm in asn1 libs

This commit is contained in:
Andre Puschmann 2019-11-29 13:29:35 +01:00
parent 5f17575575
commit 0e89fa9f0d
2 changed files with 2 additions and 1 deletions

View File

@ -581,7 +581,7 @@ public:
{
if (s.size() != N) {
srsasn_log_print(
LOG_LEVEL_ERROR, "The provided string size=%d does not match the bit string size=%d\n", s.size(), N);
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)

View File

@ -151,6 +151,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();
}
}