summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-04-19 22:47:00 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-04-20 11:22:59 +0200
commit658d1c3e14e6d9b7376226838ce1509f1475741b (patch)
tree11919ecabbb6d14da3edbc5c4da807cd356d5f98
parent6d1df9ad960e3359b97bb915907af93c1b4f15fc (diff)
IuCS: more detailed debug log upon IuCS rx
-rw-r--r--openbsc/src/osmo-cscn/cscn_main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c
index 50f7ddb..6d41595 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);
}