[PATCH] osmocom-bb[fixeria/trx]: fake_trx: Log IP/Port information at start-up

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Feb 28 22:17:52 UTC 2018


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

fake_trx: Log IP/Port information at start-up

Change-Id: I4ebeed7271d91ab2e45199e0fb59776c00ad833c
---
M src/target/fake_trx/ctrl_if_bb.py
M src/target/fake_trx/ctrl_if_bts.py
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/10/7010/1

diff --git a/src/target/fake_trx/ctrl_if_bb.py b/src/target/fake_trx/ctrl_if_bb.py
index c4d879c..11533d8 100644
--- a/src/target/fake_trx/ctrl_if_bb.py
+++ b/src/target/fake_trx/ctrl_if_bb.py
@@ -33,7 +33,7 @@
 	pm = None
 
 	def __init__(self, remote_addr, remote_port, bind_port):
-		print("[i] Init CTRL interface for BB")
+		print("[i] Init CTRL interface for BB (L:%u <-> R:%s:%u)" % (bind_port, remote_addr, remote_port))
 		CTRLInterface.__init__(self, remote_addr, remote_port, bind_port)
 
 	def parse_cmd(self, request):
diff --git a/src/target/fake_trx/ctrl_if_bts.py b/src/target/fake_trx/ctrl_if_bts.py
index f27b87d..8c1d8e5 100644
--- a/src/target/fake_trx/ctrl_if_bts.py
+++ b/src/target/fake_trx/ctrl_if_bts.py
@@ -34,7 +34,7 @@
 	pm = None
 
 	def __init__(self, remote_addr, remote_port, bind_port):
-		print("[i] Init CTRL interface for BTS")
+		print("[i] Init CTRL interface for BTSB (L:%u <-> R:%s:%u)" % (bind_port, remote_addr, remote_port))
 		CTRLInterface.__init__(self, remote_addr, remote_port, bind_port)
 
 	def parse_cmd(self, request):

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ebeed7271d91ab2e45199e0fb59776c00ad833c
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: fixeria/trx
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list