diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-11 23:58:17 +0900 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-11-12 14:36:11 +0000 |
commit | 4a3b044ad71535d7849bd1e7a507e4ae7a672490 (patch) | |
tree | 49b21f8cd0d3c5490810d558449750bc6a3452b5 /src/osmo-bsc/osmo_bsc_bssap.c | |
parent | 4aa2bac0bc7303f1e2781ba0d2c1e0934767b4df (diff) |
osmo-bsc: Print NOTICE message on unimplemented BSSMAP UDT
When we receive unimplemented/unhandled message types, we shouldn't
simply silently discard them, but print a log message for the
benefit of the user.
Change-Id: I65489578b1c214f193b1ce0e9ba59432dcd42a3e
Diffstat (limited to 'src/osmo-bsc/osmo_bsc_bssap.c')
-rw-r--r-- | src/osmo-bsc/osmo_bsc_bssap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c index 9f8032e9e..59c2979bc 100644 --- a/src/osmo-bsc/osmo_bsc_bssap.c +++ b/src/osmo-bsc/osmo_bsc_bssap.c @@ -645,6 +645,10 @@ static int bssmap_rcvmsg_udt(struct bsc_msc_data *msc, case BSS_MAP_MSG_PAGING: ret = bssmap_handle_paging(msc, msg, length); break; + default: + LOGP(DMSC, LOGL_NOTICE, "Received unimplemented BSSMAP UDT %s\n", + gsm0808_bssmap_name(msg->l4h[0])); + break; } return ret; |