diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2022-02-14 16:46:46 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2022-02-14 16:52:39 +0100 |
commit | c6e118af7acbfb0610b0e0202381897b11e21f81 (patch) | |
tree | 2aa7773af086d92f8cbdf223f312e0acac0e5558 | |
parent | 55e573ca33011303b942b0b457d35a5ef2b01de9 (diff) |
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
-rw-r--r-- | src/ranap_common.c | 4 |
1 files 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) |