abis: log known ACKs and unknown messages

Log expected ACK messages and unhandled messages to aid in
troubleshooting.

Change-Id: Id3afaaa76e24f63076ae0e6fd2322e4a7fa29b45
Related: OS#1614
This commit is contained in:
Max 2017-04-04 19:21:24 +02:00 committed by Harald Welte
parent 2d92162a6b
commit 689e7e5562
1 changed files with 18 additions and 1 deletions

View File

@ -694,8 +694,21 @@ static int abis_nm_rcvmsg_fom(struct msgb *mb)
case NM_MT_BS11_LMT_SESSION:
ret = abis_nm_rx_lmt_event(mb);
break;
case NM_MT_OPSTART_ACK:
abis_nm_debugp_foh(DNM, foh);
DEBUGPC(DNM, "Opstart ACK\n");
break;
case NM_MT_SET_CHAN_ATTR_ACK:
abis_nm_debugp_foh(DNM, foh);
DEBUGPC(DNM, "Set Channel Attributes ACK\n");
break;
case NM_MT_SET_RADIO_ATTR_ACK:
abis_nm_debugp_foh(DNM, foh);
DEBUGPC(DNM, "Set Radio Carrier Attributes ACK\n");
break;
case NM_MT_CONN_MDROP_LINK_ACK:
DEBUGP(DNM, "CONN MDROP LINK ACK\n");
abis_nm_debugp_foh(DNM, foh);
DEBUGPC(DNM, "CONN MDROP LINK ACK\n");
break;
case NM_MT_IPACC_RESTART_ACK:
osmo_signal_dispatch(SS_NM, S_NM_IPACC_RESTART_ACK, NULL);
@ -705,6 +718,10 @@ static int abis_nm_rcvmsg_fom(struct msgb *mb)
break;
case NM_MT_SET_BTS_ATTR_ACK:
break;
default:
abis_nm_debugp_foh(DNM, foh);
LOGPC(DNM, LOGL_ERROR, "Unhandled message %s\n",
get_value_string(abis_nm_msgtype_names, mt));
}
abis_nm_queue_send_next(bts);