diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-06-30 17:28:10 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2017-06-30 17:28:10 +0200 |
commit | 116568d34f5c1e941082ae7bfc891631a8b53553 (patch) | |
tree | 2ec11d11c62bdfbd9db7f3f7039a51984eb3d9f6 /openbsc/src/osmo-bsc/osmo_bsc_bssap.c | |
parent | 458c2b0a72fefbd2c725c1b512f761b3bfc74229 (diff) |
osmo-bsc: use better msc identifier
Using the MSC numbers in the logtext is not very expressive,
ise the SCCP-Addresses instead.
When creating the sccp instance and user, use more parseable
string than "MSC No.: n"
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_bssap.c')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_bssap.c | 6 |
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 f37caa0d4..8d74e6e77 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_bssap.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_bssap.c @@ -194,7 +194,8 @@ static int match_codec_pref(int *full_rate, enum gsm48_chan_mode *chan_mode, static int bssmap_handle_reset_ack(struct bsc_msc_data *msc, struct msgb *msg, unsigned int length) { - LOGP(DMSC, LOGL_NOTICE, "RESET ACK from MSC No.: %i\n", msc->nr); + LOGP(DMSC, LOGL_NOTICE, "RESET ACK from MSC: %s\n", + osmo_sccp_addr_dump(&msc->a.msc_addr)); /* Inform the FSM that controls the RESET/RESET-ACK procedure * that we have successfully received the reset-ack message */ @@ -207,7 +208,8 @@ static int bssmap_handle_reset_ack(struct bsc_msc_data *msc, static int bssmap_handle_reset(struct bsc_msc_data *msc, struct msgb *msg, unsigned int length) { - LOGP(DMSC, LOGL_NOTICE, "RESET from MSC No.: %i\n", msc->nr); + LOGP(DMSC, LOGL_NOTICE, "RESET from MSC: %s\n", + osmo_sccp_addr_dump(&msc->a.msc_addr)); /* Instruct the bsc to close all open sigtran connections and to * close all active channels on the BTS side as well */ |