[PATCH] osmo-msc[master]: debug log: enrich Cipher Mode Cmd log in a_iface_tx_cipher_m...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Dec 14 20:31:56 UTC 2017


Review at  https://gerrit.osmocom.org/5374

debug log: enrich Cipher Mode Cmd log in a_iface_tx_cipher_mode()

Change-Id: Ib406d6e6784342341e716206997e382c702ac9d2
---
M src/libmsc/a_iface.c
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/74/5374/1

diff --git a/src/libmsc/a_iface.c b/src/libmsc/a_iface.c
index 83ec82f..6f9bdd0 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 @@
 
 	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;
 

-- 
To view, visit https://gerrit.osmocom.org/5374
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib406d6e6784342341e716206997e382c702ac9d2
Gerrit-PatchSet: 1
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list