From c6e118af7acbfb0610b0e0202381897b11e21f81 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Mon, 14 Feb 2022 16:46:46 +0100 Subject: 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 --- src/ranap_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ranap_common.c b/src/ranap_common.c index b491614..f264ac0 100644 --- a/src/ranap_common.c +++ b/src/ranap_common.c @@ -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) -- cgit v1.2.3