aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-11 17:56:34 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-11 17:56:50 +0200
commit9f32a8a3c176f88ba3b902cfec8d8c4bdc9f7b38 (patch)
tree407ad3a0326d8eec582a0febeb9c1f21754ca9b6
parenta0d9db99cb6c9efbab1b66534b6f80ff9c9c3d32 (diff)
use the recently introduced gsm0808_bssmap_name() of libosmogsm
This allows human-readable printing of message types on the A interface.
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_bssap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
index a3ba2adc5..47c1c352b 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
@@ -445,7 +445,8 @@ static int bssmap_rcvmsg_dt1(struct osmo_bsc_sccp_con *conn,
ret = bssmap_handle_assignm_req(conn, msg, length);
break;
default:
- LOGP(DMSC, LOGL_DEBUG, "Unimplemented msg type: %d\n", msg->l4h[0]);
+ LOGP(DMSC, LOGL_NOTICE, "Unimplemented msg type: %s\n",
+ gsm0808_bssmap_name(msg->l4h[0]));
break;
}
@@ -519,7 +520,8 @@ int bsc_handle_udt(struct gsm_network *network,
bssmap_rcvmsg_udt(network, msgb, length - sizeof(*bs));
break;
default:
- LOGP(DMSC, LOGL_ERROR, "Unimplemented msg type: %d\n", bs->type);
+ LOGP(DMSC, LOGL_NOTICE, "Unimplemented msg type: %s\n",
+ gsm0808_bssmap_name(bs->type));
}
return 0;