diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-08-28 01:03:27 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-08-29 02:02:10 +0200 |
commit | e706a15e3382bdf1da1588f6b33e1cf9f5cad5eb (patch) | |
tree | a347c8aa58cd74653893d6c32558f937bafd35a7 | |
parent | 128600c561713d1e8e35a46b78227e880e5ada91 (diff) |
log: tweaks and more context in osmo_bsc_sigtran_send()
Change-Id: I3d51f17b0f6ceb0e5237b4d6d5252c701fc2fe6b
-rw-r--r-- | src/osmo-bsc/osmo_bsc_sigtran.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c index 96f06874a..7b7d3b969 100644 --- a/src/osmo-bsc/osmo_bsc_sigtran.c +++ b/src/osmo-bsc/osmo_bsc_sigtran.c @@ -363,16 +363,18 @@ int osmo_bsc_sigtran_send(struct gsm_subscriber_connection *conn, struct msgb *m if (msg->len >= 3) { switch (msg->data[0]) { case BSSAP_MSG_BSS_MANAGEMENT: - LOGP(DMSC, LOGL_INFO, "Tx MSC %s\n", gsm0808_bssmap_name(msg->data[2])); + LOGP(DMSC, LOGL_INFO, "Tx MSC: BSSMAP: %s\n", + gsm0808_bssmap_name(msg->data[2])); break; case BSSAP_MSG_DTAP: - LOGP(DMSC, LOGL_INFO, "Tx MSC DTAP\n"); + LOGP(DMSC, LOGL_INFO, "Tx MSC: DTAP\n"); break; default: - LOGP(DMSC, LOGL_ERROR, "Tx MSC (unknwon message type)\n"); + LOGP(DMSC, LOGL_ERROR, "Tx MSC: unknown message type: 0x%x\n", + msg->data[0]); } } else - LOGP(DMSC, LOGL_ERROR, "Tx MSC (message too short)\n"); + LOGP(DMSC, LOGL_ERROR, "Tx MSC: message too short: %u\n", msg->len); if (a_reset_conn_ready(msc) == false) { LOGP(DMSC, LOGL_ERROR, "MSC is not connected. Dropping.\n"); |