Pau Espin Pedrol has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/83/9383/1

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: newchange
Gerrit-Change-Id: Id4f875944c40fd862fc63feec82216c45d2e41c2
Gerrit-Change-Number: 9383
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>

Reply via email to