From 658d1c3e14e6d9b7376226838ce1509f1475741b Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 19 Apr 2016 22:47:00 +0200 Subject: IuCS: more detailed debug log upon IuCS rx --- openbsc/src/osmo-cscn/cscn_main.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c index 50f7ddbbb..6d41595a4 100644 --- a/openbsc/src/osmo-cscn/cscn_main.c +++ b/openbsc/src/osmo-cscn/cscn_main.c @@ -319,8 +319,15 @@ void *talloc_asn1_ctx; static int rcvmsg_iu_cs(struct msgb *msg, struct gprs_ra_id *ra_id, /* FIXME gprs_ in CS code */ uint16_t *sai) { - DEBUGP(DIUCS, "got Iu-CS message: %s\n", - osmo_hexdump(msg->data, msg->len)); + DEBUGP(DIUCS, "got IuCS message" + " %d bytes: %s\n", + msg->len, osmo_hexdump(msg->data, msg->len)); + if (ra_id) { + DEBUGP(DIUCS, "got IuCS message on" + " MNC %d MCC %d LAC %d RAC %d\n", + ra_id->mnc, ra_id->mcc, ra_id->lac, ra_id->rac); + } + return gsm0408_rcvmsg_iucs(cscn_network, msg, ra_id? &ra_id->lac : NULL); } -- cgit v1.2.3