From 99f2477653c1a1bff85cf0d5f823c4845fb46dc3 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 2 May 2016 19:50:37 +0200 Subject: cosmetic: IuCS logging --- openbsc/src/libiu/iu.c | 2 -- openbsc/src/libmsc/iu_cs.c | 2 ++ openbsc/src/osmo-cscn/cscn_main.c | 3 ++- openbsc/src/osmo-cscn/iucs_ranap.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/openbsc/src/libiu/iu.c b/openbsc/src/libiu/iu.c index e22015c14..43acf2564 100644 --- a/openbsc/src/libiu/iu.c +++ b/openbsc/src/libiu/iu.c @@ -469,12 +469,10 @@ static void cn_ranap_handle_co(void *ctx, ranap_message *message) switch (message->procedureCode) { case RANAP_ProcedureCode_id_SecurityModeControl: /* Security Mode Complete */ - LOGP(DRANAP, LOGL_NOTICE, "FIXME: Handle security mode complete\n"); rc = global_iu_event_cb(ctx, IU_EVENT_SECURITY_MODE_COMPLETE, NULL); break; case RANAP_ProcedureCode_id_Iu_Release: /* Iu Release Complete */ - LOGP(DRANAP, LOGL_NOTICE, "FIXME: Handle Iu release complete\n"); rc = global_iu_event_cb(ctx, IU_EVENT_IU_RELEASE, NULL); if (rc) { LOGP(DRANAP, LOGL_ERROR, "Iu Release event: Iu Event callback returned %d\n", diff --git a/openbsc/src/libmsc/iu_cs.c b/openbsc/src/libmsc/iu_cs.c index 391e577f1..38648341e 100644 --- a/openbsc/src/libmsc/iu_cs.c +++ b/openbsc/src/libmsc/iu_cs.c @@ -83,6 +83,8 @@ struct gsm_subscriber_connection *subscr_conn_lookup_iu( { struct gsm_subscriber_connection *conn; + DEBUGP(DIUCS, "Looking for IuCS subscriber: link_id %p, conn_id %" PRIx32 "\n", + ue->link, ue->conn_id); log_subscribers(network); llist_for_each_entry(conn, &network->subscr_conns, entry) { diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c index 4fe646b73..c66873437 100644 --- a/openbsc/src/osmo-cscn/cscn_main.c +++ b/openbsc/src/osmo-cscn/cscn_main.c @@ -332,7 +332,8 @@ static int rcvmsg_iu_cs(struct msgb *msg, struct gprs_ra_id *ra_id, /* FIXME gpr static int rx_iu_event(struct ue_conn_ctx *ctx, enum iu_event_type type, void *data) { - DEBUGP(DIUCS, "got IuCS event %u\n", type); + DEBUGP(DIUCS, "got IuCS event %u: %s\n", type, + iu_event_type_str(type)); return iucs_rx_ranap_event(cscn_network, ctx, type, data); } diff --git a/openbsc/src/osmo-cscn/iucs_ranap.c b/openbsc/src/osmo-cscn/iucs_ranap.c index 5db29c29e..f88a55242 100644 --- a/openbsc/src/osmo-cscn/iucs_ranap.c +++ b/openbsc/src/osmo-cscn/iucs_ranap.c @@ -82,7 +82,7 @@ int iucs_rx_ranap_event(struct gsm_network *network, conn = subscr_conn_lookup_iu(network, ue_ctx); if (!conn) { - LOGP(DRANAP, LOGL_NOTICE, "Cannot find subscriber for IU event %u\n", type); + LOGP(DRANAP, LOGL_ERROR, "Cannot find subscriber for IU event %u\n", type); return -1; } -- cgit v1.2.3