diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2020-08-10 21:13:16 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2020-08-21 14:56:10 +0200 |
commit | 18e8c4741ee35e1e0febd02d87bed0f69c47c225 (patch) | |
tree | b7e5423f925b269612f78b52ceb5d02deb471051 | |
parent | 09e716190581413c6a0dd282418a43f1fe932cf8 (diff) |
log best candidate idx
Change-Id: I1e919d207c9a426a60ae68a2188629c719232410
-rw-r--r-- | src/osmo-bsc/handover_decision_2.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/osmo-bsc/handover_decision_2.c b/src/osmo-bsc/handover_decision_2.c index e4edfe6e0..e2196b467 100644 --- a/src/osmo-bsc/handover_decision_2.c +++ b/src/osmo-bsc/handover_decision_2.c @@ -1107,7 +1107,8 @@ static int find_alternative_lchan(struct gsm_lchan *lchan, bool include_weaker_r /* perform handover, if there is a candidate */ if (best_cand) { - LOGPHOCAND(best_cand, LOGL_INFO, "Best candidate, RX level %d%s\n", + LOGPHOCAND(best_cand, LOGL_INFO, "Best candidate is #%ld, RX level %d%s\n", + best_cand - clist, rxlev2dbm(best_cand->avg), best_applied_afs_bias ? " (applied AHS -> AFS rxlev bias)" : ""); return trigger_ho(best_cand, best_cand->requirements & REQUIREMENT_B_MASK); @@ -1140,7 +1141,8 @@ static int find_alternative_lchan(struct gsm_lchan *lchan, bool include_weaker_r /* perform handover, if there is a candidate */ if (best_cand) { - LOGPHOCAND(best_cand, LOGL_INFO, "Best candidate, RX level %d%s\n", + LOGPHOCAND(best_cand, LOGL_INFO, "Best candidate is #%ld, RX level %d%s\n", + best_cand - clist, rxlev2dbm(best_cand->avg), best_applied_afs_bias? " (applied AHS -> AFS rxlev bias)" : ""); return trigger_ho(best_cand, best_cand->requirements & REQUIREMENT_C_MASK); @@ -1179,7 +1181,8 @@ static int find_alternative_lchan(struct gsm_lchan *lchan, bool include_weaker_r /* perform handover, if there is a candidate */ if (best_cand) { - LOGPHOCAND(best_cand, LOGL_INFO, "Best candidate: RX level %d%s\n", + LOGPHOCAND(best_cand, LOGL_INFO, "Best candidate is #%ld: RX level %d%s\n", + best_cand - clist, rxlev2dbm(best_cand->avg), best_applied_afs_bias ? " (applied AHS -> AFS rxlev bias)" : ""); return trigger_ho(best_cand, best_cand->requirements & REQUIREMENT_A_MASK); @@ -1544,7 +1547,8 @@ next_b1: /* perform handover, if there is a candidate */ if (best_cand) { any_ho = 1; - LOGPHOCAND(best_cand, LOGL_DEBUG, "Best candidate: RX level %d%s\n", + LOGPHOCAND(best_cand, LOGL_DEBUG, "Best candidate is #%ld: RX level %d%s\n", + best_cand - clist, rxlev2dbm(best_cand->avg), is_improved ? " (applied AHS->AFS bias)" : ""); trigger_ho(best_cand, best_cand->requirements & REQUIREMENT_B_MASK); @@ -1693,7 +1697,8 @@ next_c1: /* perform handover, if there is a candidate */ if (best_cand) { any_ho = 1; - LOGPHOCAND(best_cand, LOGL_INFO, "Best candidate: RX level %d%s\n", + LOGPHOCAND(best_cand, LOGL_INFO, "Best candidate is #%ld: RX level %d%s\n", + best_cand - clist, rxlev2dbm(best_cand->avg), is_improved ? " (applied AHS -> AFS rxlev bias)" : ""); trigger_ho(best_cand, best_cand->requirements & REQUIREMENT_C_MASK); |