aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-11-14 17:26:51 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-11-14 17:26:51 +0100
commit3d38ce1c809d071d1cf9192622dd181a64d104d7 (patch)
tree7c1ba312875698e7e0aade5dc9981ae1b1da0a51
parent735e3299ea7cc8827c540388a41ed4fa9472906b (diff)
power_control.c: Log rx current and target signal levelspespin/ms-pwr3
-rw-r--r--src/common/power_control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/power_control.c b/src/common/power_control.c
index 106e2a89..adba4c66 100644
--- a/src/common/power_control.c
+++ b/src/common/power_control.c
@@ -99,15 +99,15 @@ int lchan_ms_pwr_ctrl(struct gsm_lchan *lchan,
}
if (lchan->ms_power_ctrl.current == new_power) {
- LOGPLCHAN(lchan, DLOOP, LOGL_INFO, "Keeping MS new_power at control level %d (%d dBm)\n",
- new_power, ms_pwr_dbm(band, new_power));
+ LOGPLCHAN(lchan, DLOOP, LOGL_INFO, "Keeping MS new_power at control level %d, %d dBm (rx-current %d dBm, rx-target %d dBm)\n",
+ new_power, ms_pwr_dbm(band, new_power), rxLevel, bts->ul_power_target);
return 0;
}
- LOGPLCHAN(lchan, DLOOP, LOGL_INFO, "%s MS new_power from control level %d (%d dBm) to %d (%d dBm)\n",
+ LOGPLCHAN(lchan, DLOOP, LOGL_INFO, "%s MS new_power from control level %d (%d dBm) to %d, %d dBm (rx-current %d dBm, rx-target %d dBm)\n",
(diff > 0) ? "Raising" : "Lowering",
lchan->ms_power_ctrl.current, ms_pwr_dbm(band, lchan->ms_power_ctrl.current),
- new_power, ms_pwr_dbm(band, new_power));
+ new_power, ms_pwr_dbm(band, new_power), rxLevel, bts->ul_power_target);
/* store the resulting new MS power level in the lchan */
lchan->ms_power_ctrl.current = new_power;