aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/handover_decision.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-07-07 09:12:17 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-01-19 16:03:16 +0100
commit81260a6795a72140de7098770ff96ac0074b47fb (patch)
treea3376ced82642d74f81f98a47d9460f6778eda22 /src/libbsc/handover_decision.c
parent87b5eb667b1da955da035a781a9969a978d3f095 (diff)
HO: Change debug category at handover decision: DHO -> DHODEC
Diffstat (limited to 'src/libbsc/handover_decision.c')
-rw-r--r--src/libbsc/handover_decision.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libbsc/handover_decision.c b/src/libbsc/handover_decision.c
index 1e2e0d944..069361343 100644
--- a/src/libbsc/handover_decision.c
+++ b/src/libbsc/handover_decision.c
@@ -65,7 +65,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;
}
@@ -104,7 +104,7 @@ static int neigh_meas_avg(struct neigh_meas_proc *nmp, int window)
window = nmp->rxlev_cnt;
/* this should never happen */
if (window <= 0) {
- LOGP(DHO, LOGL_ERROR, "Requested Neighbor RxLev for invalid window size of %d\n", window);
+ LOGP(DHODEC, LOGL_ERROR, "Requested Neighbor RxLev for invalid window size of %d\n", window);
return 0;
}
@@ -232,26 +232,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: ",
gsm_ts_name(mr->lchan->ts), best_cell->arfcn);
if (!ho_get_ho_active(bts->ho)) {
- LOGPC(DHO, LOGL_INFO, "Skipping, Handover disabled\n");
+ LOGPC(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: meas report number %d \n", mr->nr);
+ LOGPC(DHODEC, LOGL_INFO, "Starting handover: meas report number %d \n", mr->nr);
break;
case -ENOSPC:
- LOGPC(DHO, LOGL_INFO, "No channel available\n");
+ LOGPC(DHODEC, LOGL_INFO, "No channel available\n");
break;
case -EBUSY:
- LOGPC(DHO, LOGL_INFO, "Handover already active\n");
+ LOGPC(DHODEC, LOGL_INFO, "Handover already active\n");
break;
default:
- LOGPC(DHO, LOGL_ERROR, "Unknown error\n");
+ LOGPC(DHODEC, LOGL_ERROR, "Unknown error\n");
}
return rc;
}