summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2016-12-08 17:34:12 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2017-02-24 15:18:21 +0100
commit59400659bc6673f07b9db9d38bbbae190f10e944 (patch)
tree46385fa3e694bf4e273582c1475192858e9d3495
parent189f48aedd4218642ce87b8bffb2b06517cf0285 (diff)
cosmetic: Improve log output
callback functions in bsc_init.c and bts_ericsson_rbs2000.c do not display any information about the received signals. This commit changes that to make debugging easier.
-rw-r--r--openbsc/src/libbsc/bsc_init.c2
-rw-r--r--openbsc/src/libbsc/bts_ericsson_rbs2000.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c
index 572896b..076747a 100644
--- a/openbsc/src/libbsc/bsc_init.c
+++ b/openbsc/src/libbsc/bsc_init.c
@@ -322,6 +322,7 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal,
switch (signal) {
case S_L_INP_TEI_UP:
+ LOGP(DLMI, LOGL_DEBUG, "inp_sig_cb() signal: S_L_INP_TEI_UP\n");
if (isd->link_type == E1INP_SIGN_OML) {
/* TODO: this is required for the Nokia BTS, hopping is configured
during OML, other MA is not set. */
@@ -344,6 +345,7 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal,
bootstrap_rsl(trx);
break;
case S_L_INP_TEI_DN:
+ LOGP(DLMI, LOGL_DEBUG, "inp_sig_cb() signal: S_L_INP_TEI_DN\n");
LOGP(DLMI, LOGL_ERROR, "Lost some E1 TEI link: %d %p\n", isd->link_type, trx);
if (isd->link_type == E1INP_SIGN_OML)
diff --git a/openbsc/src/libbsc/bts_ericsson_rbs2000.c b/openbsc/src/libbsc/bts_ericsson_rbs2000.c
index 0cae6d8..c73f522 100644
--- a/openbsc/src/libbsc/bts_ericsson_rbs2000.c
+++ b/openbsc/src/libbsc/bts_ericsson_rbs2000.c
@@ -116,6 +116,7 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal,
switch (signal) {
case S_L_INP_TEI_UP:
+ LOGP(DNM, LOGL_DEBUG, "inp_sig_cb() signal: S_L_INP_TEI_UP\n");
switch (isd->link_type) {
case E1INP_SIGN_OML:
if (isd->trx->bts->type != GSM_BTS_TYPE_RBS2000)
@@ -128,6 +129,7 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal,
}
break;
case S_L_INP_TEI_DN:
+ LOGP(DNM, LOGL_DEBUG, "inp_sig_cb() signal: S_L_INP_TEI_DN\n");
if (isd->trx->bts->type != GSM_BTS_TYPE_RBS2000)
break;
LOGP(DNM, LOGL_NOTICE, "Line-%u TS-%u TEI-%u SAPI-%u: Link "
@@ -139,7 +141,9 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal,
lapd_sap_start(e1i_ts->lapd, isd->tei, isd->sapi);
break;
case S_L_INP_LINE_INIT:
+ LOGP(DNM, LOGL_DEBUG, "inp_sig_cb() signal: S_L_INP_LINE_INIT\n");
case S_L_INP_LINE_NOALARM:
+ LOGP(DNM, LOGL_DEBUG, "inp_sig_cb() signal: S_L_INP_LINE_NOALARM\n");
if (strcasecmp(isd->line->driver->name, "DAHDI")
&& strcasecmp(isd->line->driver->name, "MISDN_LAPD")
&& strcasecmp(isd->line->driver->name, "UNIXSOCKET"))
@@ -147,6 +151,7 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal,
start_sabm_in_line(isd->line, 1);
break;
case S_L_INP_LINE_ALARM:
+ LOGP(DNM, LOGL_DEBUG, "inp_sig_cb() signal: S_L_INP_LINE_ALARM\n");
if (strcasecmp(isd->line->driver->name, "DAHDI")
&& strcasecmp(isd->line->driver->name, "MISDN_LAPD")
&& strcasecmp(isd->line->driver->name, "UNIXSOCKET"))