Change in osmo-iuh[master]: osmo-hnbgw: logging tweaks

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
Wed Mar 6 14:07:56 UTC 2019


Neels Hofmeyr has uploaded this change for review. ( https://gerrit.osmocom.org/13146


Change subject: osmo-hnbgw: logging tweaks
......................................................................

osmo-hnbgw: logging tweaks

Log about:
- sending RESET messages to CN;
- accepting a new hNodeB peer on HNBAP.

Change-Id: I317831dbc6c463e4d4dcde9e6716431e026c4398
---
M src/hnbgw_cn.c
M src/hnbgw_hnbap.c
2 files changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/46/13146/1

diff --git a/src/hnbgw_cn.c b/src/hnbgw_cn.c
index ede00c8..3be592e 100644
--- a/src/hnbgw_cn.c
+++ b/src/hnbgw_cn.c
@@ -50,6 +50,10 @@
 		.choice. transmissionNetwork = RANAP_CauseTransmissionNetwork_signalling_transport_resource_failure,
 	};
 
+	LOGP(DRANAP, LOGL_NOTICE, "Tx RESET to %s %s\n",
+	     domain == CN_DomainIndicator_cs_domain ? "IuCS" : "IuPS",
+	     osmo_sccp_inst_addr_name(gw->sccp.cnlink->sccp, remote_addr));
+
 	msg = ranap_new_msg_reset(domain, &cause);
 
 	return osmo_sccp_tx_unitdata_msg(gw->sccp.cnlink->sccp_user,
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c
index 1d50d4d..2d67219 100644
--- a/src/hnbgw_hnbap.c
+++ b/src/hnbgw_hnbap.c
@@ -119,6 +119,8 @@
 
 	ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBRegisterAccept, &accept_out);
 
+	LOGP(DHNBAP, LOGL_NOTICE, "Accepting HNB-REGISTER-REQ from %s\n", ctx->identity_info);
+
 	return hnbgw_hnbap_tx(ctx, msg);
 }
 

-- 
To view, visit https://gerrit.osmocom.org/13146
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I317831dbc6c463e4d4dcde9e6716431e026c4398
Gerrit-Change-Number: 13146
Gerrit-PatchSet: 1
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190306/464361e1/attachment.htm>


More information about the gerrit-log mailing list