Change in osmo-bts[master]: osmo-bts-virtual: do not print redundant info in tx_to_virt_um()

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

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sat Feb 29 11:47:44 UTC 2020


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/17299 )


Change subject: osmo-bts-virtual: do not print redundant info in tx_to_virt_um()
......................................................................

osmo-bts-virtual: do not print redundant info in tx_to_virt_um()

LOGL1S() already prints quite a lot, including the ARFCN.

Change-Id: I29adf9360b96544b7f58766d5cd26d97117884d9
---
M src/osmo-bts-virtual/scheduler_virtbts.c
1 file changed, 2 insertions(+), 12 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/99/17299/1

diff --git a/src/osmo-bts-virtual/scheduler_virtbts.c b/src/osmo-bts-virtual/scheduler_virtbts.c
index fef367b..a0d9b23 100644
--- a/src/osmo-bts-virtual/scheduler_virtbts.c
+++ b/src/osmo-bts-virtual/scheduler_virtbts.c
@@ -46,16 +46,6 @@
 
 #define MODULO_HYPERFRAME 0
 
-static const char *gsmtap_hdr_stringify(const struct gsmtap_hdr *gh)
-{
-	static char buf[256];
-	snprintf(buf, sizeof(buf), "(ARFCN=%u, ts=%u, ss=%u, type=%u/%u)",
-		 ntohs(gh->arfcn & GSMTAP_ARFCN_MASK),
-		 gh->timeslot, gh->sub_slot,
-		 gh->type, gh->sub_type);
-	return buf;
-}
-
 /**
  * Send a message over the virtual um interface.
  * This will at first wrap the msg with a GSMTAP header and then write it to the declared multicast socket.
@@ -102,12 +92,12 @@
 		rc = virt_um_write_msg(pinst->phy_link->u.virt.virt_um, outmsg);
 		if (rc < 0)
 			LOGL1S(DL1P, LOGL_ERROR, l1t, tn, chan, fn,
-				"%s GSMTAP msg could not send to virtual Um\n", gsmtap_hdr_stringify(gh));
+			       "GSMTAP msg could not send to virtual Um\n");
 		else if (rc == 0)
 			bts_shutdown(l1t->trx->bts, "VirtPHY write socket died\n");
 		else
 			LOGL1S(DL1P, LOGL_DEBUG, l1t, tn, chan, fn,
-				"%s Sending GSMTAP message to virtual Um\n", gsmtap_hdr_stringify(gh));
+			       "Sending GSMTAP message to virtual Um\n");
 	} else
 		LOGL1S(DL1P, LOGL_ERROR, l1t, tn, chan, fn, "GSMTAP msg could not be created!\n");
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/17299
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I29adf9360b96544b7f58766d5cd26d97117884d9
Gerrit-Change-Number: 17299
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200229/fb177b12/attachment.htm>


More information about the gerrit-log mailing list