Change in osmo-bsc[master]: chan_alloc: Print bts nr on chan alloc failure

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 May 30 14:32:59 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9383 )

Change subject: chan_alloc: Print bts nr on chan alloc failure
......................................................................

chan_alloc: Print bts nr on chan alloc failure

Also change format of related debug message to match similar format than
gsm_ts_and_pchan_name().

Change-Id: Id4f875944c40fd862fc63feec82216c45d2e41c2
---
M src/libbsc/chan_alloc.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/libbsc/chan_alloc.c b/src/libbsc/chan_alloc.c
index d773382..4eccff0 100644
--- a/src/libbsc/chan_alloc.c
+++ b/src/libbsc/chan_alloc.c
@@ -338,7 +338,7 @@
 	struct gsm_lchan *lchan = NULL;
 	enum gsm_phys_chan_config first, first_cbch, second, second_cbch;
 
-	LOGP(DRLL, LOGL_DEBUG, "bts-%d lchan_alloc(%s)\n", bts->nr, gsm_lchant_name(type));
+	LOGP(DRLL, LOGL_DEBUG, "(bts=%d) lchan_alloc(%s)\n", bts->nr, gsm_lchant_name(type));
 
 	switch (type) {
 	case GSM_LCHAN_SDCCH:
@@ -488,8 +488,8 @@
 	} else {
 		struct challoc_signal_data sig;
 
-		LOGP(DRLL, LOGL_ERROR, "Failed to allocate %s channel\n",
-		     gsm_lchant_name(type));
+		LOGP(DRLL, LOGL_ERROR, "(bts=%d) Failed to allocate %s channel\n",
+		     bts->nr, gsm_lchant_name(type));
 
 		sig.bts = bts;
 		sig.type = type;

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id4f875944c40fd862fc63feec82216c45d2e41c2
Gerrit-Change-Number: 9383
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180530/1fae9bd6/attachment.htm>


More information about the gerrit-log mailing list