summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-07-07 09:12:17 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2013-07-29 12:45:11 +0200
commitf046537cd79e02b567bc32aef30d2e9102ca670c (patch)
tree84027b2309c33ec6a4975321a669895527dd36e4
parent437c80cab14629f7d2f451128c6414d5a8d5186a (diff)
HO: Change debug category at handover decision: DHO -> DHODEC
-rw-r--r--openbsc/src/libbsc/handover_decision_1.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/openbsc/src/libbsc/handover_decision_1.c b/openbsc/src/libbsc/handover_decision_1.c
index aae56f0d1..1151c0b24 100644
--- a/openbsc/src/libbsc/handover_decision_1.c
+++ b/openbsc/src/libbsc/handover_decision_1.c
@@ -42,7 +42,7 @@ static int handover_to_arfcn_bsic(struct gsm_lchan *lchan,
/* resolve the gsm_bts structure for the best neighbor */
new_bts = gsm_bts_neighbor(lchan->ts->trx->bts, arfcn, bsic);
if (!new_bts) {
- LOGP(DHO, LOGL_NOTICE, "unable to determine neighbor BTS "
+ LOGP(DHODEC, LOGL_NOTICE, "unable to determine neighbor BTS "
"for ARFCN %u BSIC %u ?!?\n", arfcn, bsic);
return -EINVAL;
}
@@ -207,26 +207,26 @@ static int attempt_handover(struct gsm_meas_rep *mr)
if (!best_cell)
return 0;
- LOGP(DHO, LOGL_INFO, "%s: Cell on ARFCN %u is better: ",
+ LOGP(DHODEC, LOGL_INFO, "%s: Cell on ARFCN %u is better\n",
gsm_ts_name(mr->lchan->ts), best_cell->arfcn);
if (!bts->handover.ho_active) {
- LOGPC(DHO, LOGL_INFO, "Skipping, Handover disabled\n");
+ LOGP(DHODEC, LOGL_INFO, "- Skipping, Handover disabled\n");
return 0;
}
rc = handover_to_arfcn_bsic(mr->lchan, best_cell->arfcn, best_cell->bsic);
switch (rc) {
case 0:
- LOGPC(DHO, LOGL_INFO, "Starting handover\n");
+ LOGP(DHODEC, LOGL_INFO, "- Starting handover\n");
break;
case -ENOSPC:
- LOGPC(DHO, LOGL_INFO, "No channel available\n");
+ LOGP(DHODEC, LOGL_INFO, "- No channel available\n");
break;
case -EBUSY:
- LOGPC(DHO, LOGL_INFO, "Handover already active\n");
+ LOGP(DHODEC, LOGL_INFO, "- Handover already active\n");
break;
default:
- LOGPC(DHO, LOGL_ERROR, "Unknown error\n");
+ LOGP(DHODEC, LOGL_ERROR, "- Unknown error\n");
}
return rc;
}