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
This commit is contained in:
Harald Welte 2021-02-11 10:14:57 +01:00
parent e3f707b8c6
commit e8299eb745
1 changed files with 2 additions and 2 deletions

View File

@ -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; ialg = RANAP_IntegrityProtectionAlgorithm_standard_UMTS_integrity_algorithm_UIA2;
break; break;
default: 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; 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; ealg = RANAP_EncryptionAlgorithm_standard_UMTS_encryption_algorithm_UEA2;
break; break;
default: 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); asn_set_empty(&ies.integrityProtectionInformation.permittedAlgorithms);
return NULL; return NULL;
} }