[PATCH] osmo-bts[master]: osmo-bts-trx: cosmetic log fix

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

Max gerrit-no-reply at lists.osmocom.org
Mon Mar 13 12:24:08 UTC 2017


Hello Neels Hofmeyr, Harald Welte, Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/1974

to look at the new patch set (#2).

osmo-bts-trx: cosmetic log fix

Print actual value causing error and the check range.

Change-Id: Ic36c0558cdbd1790c167f290a40007b42f5de65d
---
M src/common/scheduler.c
1 file changed, 11 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/74/1974/2

diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 724fb5a..27b7630 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -305,11 +305,11 @@
 			goto wrong_type;
 		}
 		if (prim_fn > 100) {
-			LOGP(DL1C, LOGL_NOTICE, "Prim for trx=%u ts=%u at fn=%u "
-			     "is out of range, or channel %s with type %s is "
-			     "already disabled. If this happens in conjunction "
-			     "with PCU, increase 'rts-advance' by 5. "
-			     "(current fn=%u)\n", l1t->trx->nr, tn,
+			LOGP(DL1C, LOGL_NOTICE, "Prim %u for trx=%u ts=%u at "
+			     "fn=%u is out of range (100), or channel %s with "
+			     "type %s is already disabled. If this happens in "
+			     "conjunction with PCU, increase 'rts-advance' by 5."
+			     " (current fn=%u)\n", prim_fn, l1t->trx->nr, tn,
 			     l1sap->u.data.fn,
 			     get_lchan_by_chan_nr(l1t->trx, chan_nr)->name,
 			     get_value_string(trx_chan_type_names, chan), fn);
@@ -1609,10 +1609,12 @@
 no_data:
 	/* in case of C0, we need a dummy burst to maintain RF power */
 	if (bits == NULL && l1t->trx == l1t->trx->bts->c0) {
-if (0)		if (chan != TRXC_IDLE) // hack
-		LOGP(DL1C, LOGL_DEBUG, "No burst data for %s fn=%u ts=%u "
-			"burst=%d on C0, so filling with dummy burst\n",
-			trx_chan_desc[chan].name, fn, tn, bid);
+#if 0
+		if (chan != TRXC_IDLE) // hack
+			LOGP(DL1C, LOGL_DEBUG, "No burst data for %s fn=%u ts=%u "
+			     "burst=%d on C0, so filling with dummy burst\n",
+			     trx_chan_desc[chan].name, fn, tn, bid);
+#endif
 		bits = (ubit_t *) dummy_burst;
 	}
 

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

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ic36c0558cdbd1790c167f290a40007b42f5de65d
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list