Harald Welte has submitted this change and it was merged.

Change subject: log: output hexdump of transmitted sccp messages
......................................................................


log: output hexdump of transmitted sccp messages

We output a hexdump for each sccp message we receive, but not when
sending.

Also log the hexdump of sccp messages when sending.

Change-Id: Ibfe52a0b7dbca4c569c603a008d73d0d99d1c345
---
M src/osmo-bsc/osmo_bsc_sigtran.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c
index 31a8cea..951061a 100644
--- a/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -356,8 +356,8 @@
 
        ss7 = osmo_ss7_instance_find(msc->a.cs7_instance);
        OSMO_ASSERT(ss7);
-       LOGP(DMSC, LOGL_DEBUG, "Sending connection (id=%i) oriented data to 
MSC: %si\n",
-            conn_id, osmo_sccp_addr_name(ss7, &msc->a.msc_addr));
+       LOGP(DMSC, LOGL_DEBUG, "Sending connection (id=%i) oriented data to 
MSC: %s (%s)\n",
+            conn_id, osmo_sccp_addr_name(ss7, &msc->a.msc_addr), 
osmo_hexdump(msg->data, msg->len));
 
        rc = osmo_sccp_tx_data_msg(msc->a.sccp_user, conn_id, msg);
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibfe52a0b7dbca4c569c603a008d73d0d99d1c345
Gerrit-PatchSet: 3
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: dexter <pma...@sysmocom.de>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msur...@sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofm...@sysmocom.de>

Reply via email to