libbsc: add debug log message to S_L_INP_* callbacks
Improve debug log output of input callbacks by adding a line containing the signal event name. Change-Id: Ifca46dd8b356d0de31cccbd79e406079d3a0d7d2
This commit is contained in:
parent
6f483d3a05
commit
94bbc73bce
|
@ -320,6 +320,7 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal,
|
|||
|
||||
switch (signal) {
|
||||
case S_L_INP_TEI_UP:
|
||||
LOGP(DLMI, LOGL_DEBUG, "%s() signal: S_L_INP_TEI_UP\n", __func__);
|
||||
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, "%s() signal: S_L_INP_TEI_DN\n", __func__);
|
||||
LOGP(DLMI, LOGL_ERROR, "Lost some E1 TEI link: %d %p\n", isd->link_type, trx);
|
||||
|
||||
if (isd->link_type == E1INP_SIGN_OML)
|
||||
|
|
|
@ -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, "%s() signal: S_L_INP_TEI_UP\n", __func__);
|
||||
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, "%s() signal: S_L_INP_TEI_DN\n", __func__);
|
||||
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, "%s() signal: S_L_INP_LINE_INIT\n", __func__);
|
||||
case S_L_INP_LINE_NOALARM:
|
||||
LOGP(DNM, LOGL_DEBUG, "%s() signal: S_L_INP_LINE_NOALARM\n", __func__);
|
||||
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, "%s() signal: S_L_INP_LINE_ALARM\n", __func__);
|
||||
if (strcasecmp(isd->line->driver->name, "DAHDI")
|
||||
&& strcasecmp(isd->line->driver->name, "MISDN_LAPD")
|
||||
&& strcasecmp(isd->line->driver->name, "UNIXSOCKET"))
|
||||
|
|
Loading…
Reference in New Issue