aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-02-29 18:44:40 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-03-02 00:26:33 +0700
commitf9e7ccce27ec46f00eb77ca5e6f9854abd12304d (patch)
treeb095c0b84c52e6a2f92d280da27b8bde9745394e
parent2b948a3d17590a9cf1f593cc20b1999888c8a82f (diff)
osmo-bts-virtual: do not print redundant info in tx_to_virt_um()
LOGL1S() already prints enough context information. Change-Id: I29adf9360b96544b7f58766d5cd26d97117884d9
-rw-r--r--src/osmo-bts-virtual/scheduler_virtbts.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/osmo-bts-virtual/scheduler_virtbts.c b/src/osmo-bts-virtual/scheduler_virtbts.c
index fef367bf..91d91539 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.
@@ -96,18 +86,17 @@ static void tx_to_virt_um(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn,
if (outmsg) {
struct phy_instance *pinst = trx_phy_instance(l1t->trx);
- struct gsmtap_hdr *gh = (struct gsmtap_hdr *)msgb_data(outmsg);
int rc;
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");