From e8299eb745a1f7157369e6c41a0a9eb866782b27 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 11 Feb 2021 10:14:57 +0100 Subject: [PATCH] ranap_msg_factory: Fix LOGP statements The related compiler warnings were overlooked as due to the asn1c-generated code there always are tons of warnings printed compiling this project :( Change-Id: I40b1265ba696501cc72e674f3ef4146c47aacf1b --- src/ranap_msg_factory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ranap_msg_factory.c b/src/ranap_msg_factory.c index 121514c4..f93a2ab8 100644 --- a/src/ranap_msg_factory.c +++ b/src/ranap_msg_factory.c @@ -232,7 +232,7 @@ struct msgb *ranap_new_msg_sec_mod_cmd2(const uint8_t *ik, const uint8_t *ck, en ialg = RANAP_IntegrityProtectionAlgorithm_standard_UMTS_integrity_algorithm_UIA2; break; default: - LOGP(DRANAP, "Unsupported UIA algorithm UIA%d specified\n", i); + LOGP(DRANAP, LOGL_ERROR, "Unsupported UIA algorithm UIA%d specified\n", i); return NULL; } @@ -259,7 +259,7 @@ struct msgb *ranap_new_msg_sec_mod_cmd2(const uint8_t *ik, const uint8_t *ck, en ealg = RANAP_EncryptionAlgorithm_standard_UMTS_encryption_algorithm_UEA2; break; default: - LOGP(DRANAP, "Unsupported UEA algorithm UEA%d specified\n", i); + LOGP(DRANAP, LOGL_ERROR, "Unsupported UEA algorithm UEA%d specified\n", i); asn_set_empty(&ies.integrityProtectionInformation.permittedAlgorithms); return NULL; }