ranap_common: log decoder errors to LOGL_ERROR

Some of the custom ranap decoders use RANAP_DEBUG to log decoding
errors. This is a problem since decoder errors usually mean that a RANAP
message was somehow incompatible or wrongly formatted, which is a
serious problem. Lets log those messages to LOGL_ERROR instead.

Change-Id: Ic94cbba65719df7618c650a394e53cc59ab4e0b9
Related: OS#5152
Philipp Maier 12 months ago
parent 55e573ca33
commit c6e118af7a
  1. 4

@ -571,7 +571,7 @@ int ranap_decode_rab_setupormodifieditemies_fromlist(
RANAP_DEBUG("Decoding message RANAP_RAB_SetupOrModifiedItemIEs (%s:%d)\n", __FILE__, __LINE__);
decoded = ANY_to_type_aper(any_p, &asn_DEF_RANAP_RAB_SetupOrModifiedItem, (void**)&ranaP_RABSetupOrModifiedItem_p);
if (decoded < 0) {
RANAP_DEBUG("Decoding of IE raB_SetupOrModifiedItem failed\n");
LOGP(DRANAP, LOGL_ERROR, "Decoding of IE raB_SetupOrModifiedItem failed\n");
return -1;
if (asn1_xer_print)
@ -643,7 +643,7 @@ int ranap_decode_rab_setupormodifyitemfirst(
decoded = ANY_to_type_aper(any_p, &asn_DEF_RANAP_RAB_SetupOrModifyItemFirst,
(void **)&ranaP_RABSetupOrModifyItemFirst_p);
if (decoded < 0) {
RANAP_DEBUG("Decoding of RANAP_RAB_SetupOrModifyItemFirst_t failed\n");
LOGP(DRANAP, LOGL_ERROR, "Decoding of RANAP_RAB_SetupOrModifyItemFirst_t failed\n");
return -1;
if (asn1_xer_print)