[PATCH] osmo-bsc[master]: log: log the sccp message type of messages sent

dexter gerrit-no-reply at lists.osmocom.org
Thu Oct 19 13:02:28 UTC 2017


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

log: log the sccp message type of messages sent

We already log the message type of sccp messages we receive, but
for transmitting the log output is missing.

Also log the message type for tramsitted sccp messages.

Change-Id: I6736f15ddc03e5f70c3504abffbae6cbf766c9d7
---
M src/osmo-bsc/osmo_bsc_bssap.c
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/51/4351/1

diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c
index c10cead..5c7bd83 100644
--- a/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/src/osmo-bsc/osmo_bsc_bssap.c
@@ -342,6 +342,7 @@
 		 * the MGCP-GW switching ourselves, we may skip everything
 		 * that is MGCP-GW related and sent the clear complete message
 		 * directly */
+		LOGP(DMSC, LOGL_INFO, "Tx MSC CLEAR COMPLETE\n");
 		osmo_bsc_sigtran_send(conn, resp);
 	}
 
@@ -421,6 +422,7 @@
 		return -1;
 	}
 
+	LOGP(DMSC, LOGL_INFO, "Tx MSC CIPTHER REJECT\n");
 	osmo_bsc_sigtran_send(conn, resp);
 	return -1;
 }
@@ -589,6 +591,7 @@
 		return -1;
 	}
 
+	LOGP(DMSC, LOGL_INFO, "Tx MSC ASSIGN FAIL\n");
 	osmo_bsc_sigtran_send(conn, resp);
 	return -1;
 }
@@ -788,5 +791,6 @@
 		return -EINVAL;
 	}
 
+	LOGP(DMSC, LOGL_INFO, "Tx MSC ASSIGN COMPLETE\n");
 	return osmo_bsc_sigtran_send(conn->sccp_con, resp);
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6736f15ddc03e5f70c3504abffbae6cbf766c9d7
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>


More information about the gerrit-log mailing list