diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-11-10 18:04:54 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-11-10 18:04:54 +0100 |
commit | fffbfd98908cbe7a860656f62a12f8753e304d1a (patch) | |
tree | 75c074f1934a83f991d83375b4c7f1c54c2680fc /src/osmo-bts-sysmo/l1_if.c | |
parent | a066e334dd458d671f9c36fbc4fca57d4f9bc731 (diff) |
l1_if: add 'log level' to dump_meas_res() function
Diffstat (limited to 'src/osmo-bts-sysmo/l1_if.c')
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index f09de6af..9dafe911 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -605,9 +605,9 @@ static uint8_t gen_link_id(GsmL1_Sapi_t l1_sapi, uint8_t lapdm_sapi) return c_bits | (lapdm_sapi & 7); } -static void dump_meas_res(GsmL1_MeasParam_t *m) +static void dump_meas_res(int ll, GsmL1_MeasParam_t *m) { - DEBUGPC(DL1C, ", Meas: RSSI %-3.2f dBm, Qual %-3.2f dB, " + LOGPC(DL1C, ll, ", Meas: RSSI %-3.2f dBm, Qual %-3.2f dB, " "BER %-3.2f, Timing %d\n", m->fRssi, m->fLinkQuality, m->fBer, m->i16BurstTiming); } @@ -656,7 +656,7 @@ static int handle_ph_data_ind(struct femtol1_hdl *fl1, GsmL1_PhDataInd_t *data_i data_ind->hLayer2, osmo_hexdump(data_ind->msgUnitParam.u8Buffer, data_ind->msgUnitParam.u8Size)); - dump_meas_res(&data_ind->measParam); + dump_meas_res(LOGL_DEBUG, &data_ind->measParam); switch (data_ind->sapi) { case GsmL1_Sapi_Sacch: @@ -765,7 +765,7 @@ static int handle_ph_ra_ind(struct femtol1_hdl *fl1, GsmL1_PhRaInd_t *ra_ind) btsb->load.rach.access++; DEBUGP(DL1C, "Rx PH-RA.ind"); - dump_meas_res(&ra_ind->measParam); + dump_meas_res(LOGL_DEBUG, &ra_ind->measParam); lc = get_lapdm_chan_by_hl2(fl1->priv, ra_ind->hLayer2); if (!lc) { |