use the recently introduced gsm0808_bssmap_name() of libosmogsm
This allows human-readable printing of message types on the A interface.
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
index a3ba2ad..47c1c35 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c
@@ -445,7 +445,8 @@
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 @@
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;