aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-14 03:52:18 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2017-12-14 03:52:18 +0100
commit98dc9f70c21e85891e2035749b457cf44c08739c (patch)
tree0d3d402bd42cdde3a4ec71f7b69f96989182b45d
parentfb21d9dde60d66ab4871ebb5b63daaecd555c47b (diff)
debug log: enrich Cipher Mode Cmd log in a_iface_tx_cipher_mode()
-rw-r--r--src/libmsc/a_iface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libmsc/a_iface.c b/src/libmsc/a_iface.c
index 83ec82f11..6f9bdd035 100644
--- a/src/libmsc/a_iface.c
+++ b/src/libmsc/a_iface.c
@@ -39,6 +39,7 @@
#include <osmocom/sccp/sccp_types.h>
#include <osmocom/msc/a_reset.h>
#include <osmocom/msc/osmo_msc.h>
+#include <osmocom/msc/vlr.h>
#include <errno.h>
@@ -172,7 +173,9 @@ int a_iface_tx_cipher_mode(const struct gsm_subscriber_connection *conn,
OSMO_ASSERT(conn);
- LOGP(DMSC, LOGL_DEBUG, "Passing Cipher mode command message from MSC to BSC (conn_id=%i)\n", conn->a.conn_id);
+ LOGP(DMSC, LOGL_DEBUG, "(subscr %s, conn_id %d) Cipher Mode Command to BSC,"
+ " cipher=%d key=%s\n",
+ vlr_subscr_name(conn->vsub), conn->a.conn_id, cipher, osmo_hexdump_nospc(key, len));
uint8_t crm = 0x01;
uint8_t *crm_ptr = NULL;