Various logging fixes

Log transaction allocation errors as such. While at it, use proper
subsystem to log missing VLR subscriber.

Change-Id: I617be8793b9416ccd49022c72f7d93df7f4fb4d9
This commit is contained in:
Max 2019-01-17 13:38:10 +01:00
parent 80d8ffda8c
commit 3614fd6d11
3 changed files with 5 additions and 5 deletions

View File

@ -1931,7 +1931,7 @@ int mncc_tx_to_cc(struct gsm_network *net, int msg_type, void *arg)
/* Create transaction */
trans = trans_alloc(net, vsub, GSM48_PDISC_CC, 0xff, data->callref);
if (!trans) {
DEBUGP(DCC, "No memory for trans.\n");
LOGP(DCC, LOGL_ERROR, "No memory for trans.\n");
vlr_subscr_put(vsub);
/* Ressource unavailable */
mncc_release_ind(net, NULL, data->callref,
@ -2129,7 +2129,7 @@ int gsm0408_rcv_cc(struct ran_conn *conn, struct msgb *msg)
GSM48_PDISC_CC,
transaction_id, new_callref++);
if (!trans) {
DEBUGP(DCC, "No memory for trans.\n");
LOGP(DCC, LOGL_ERROR, "No memory for trans.\n");
rc = gsm48_tx_simple(conn,
GSM48_PDISC_CC | (transaction_id << 4),
GSM48_MT_CC_RELEASE_COMPL);

View File

@ -101,7 +101,7 @@ int gsm0911_rcv_nc_ss(struct ran_conn *conn, struct msgb *msg)
trans = trans_alloc(conn->network, conn->vsub,
GSM48_PDISC_NC_SS, tid, new_callref++);
if (!trans) {
DEBUGP(DMM, " -> No memory for trans\n");
LOGP(DMM, LOGL_ERROR, " -> No memory for trans\n");
gsm48_tx_simple(conn,
GSM48_PDISC_NC_SS | (tid << 4),
GSM0480_MTYPE_RELEASE_COMPLETE);
@ -298,7 +298,7 @@ static struct gsm_trans *establish_nc_ss_trans(struct gsm_network *net,
trans = trans_alloc(net, vsub, GSM48_PDISC_NC_SS,
0xff, gsup_msg->session_id);
if (!trans) {
DEBUGP(DMM, " -> No memory for trans\n");
LOGP(DMM, LOGL_ERROR, " -> No memory for trans\n");
return NULL;
}

View File

@ -109,7 +109,7 @@ struct gsm_trans *trans_alloc(struct gsm_network *net,
/* a valid subscriber is indispensable */
if (vsub == NULL) {
LOGP(DCC, LOGL_NOTICE,
LOGP(DVLR, LOGL_ERROR,
"unable to alloc transaction, invalid subscriber (NULL)\n");
return NULL;
}