use the recently introduced gsm0808_bssmap_name() of libosmogsm

This allows human-readable printing of message types on the A interface.
This commit is contained in:
Harald Welte 2011-07-11 17:56:34 +02:00
parent a0d9db99cb
commit 9f32a8a3c1
1 changed files with 4 additions and 2 deletions

View File

@ -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;