From e746ca06ca8cadfd889f5380e8ca851d86540700 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 1 Aug 2010 12:13:26 +0200 Subject: [PATCH] layer23/l1ctl: Add the RX power to the DATA_IND debug print Useful to know if bad data is due to ciphering/bad sync or to no/marginal signal. Signed-off-by: Sylvain Munaut --- src/host/layer23/src/common/l1ctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c index 10d557208..abf4f8e0d 100644 --- a/src/host/layer23/src/common/l1ctl.c +++ b/src/host/layer23/src/common/l1ctl.c @@ -145,8 +145,9 @@ static int rx_ph_data_ind(struct osmocom_ms *ms, struct msgb *msg) gsm_fn2gsmtime(&tm, ntohl(dl->frame_nr)); rsl_dec_chan_nr(dl->chan_nr, &chan_type, &chan_ss, &chan_ts); - DEBUGP(DL1C, "%s (%.4u/%.2u/%.2u) %s\n", + DEBUGP(DL1C, "%s (%.4u/%.2u/%.2u) %d dBm: %s\n", rsl_chan_nr_str(dl->chan_nr), tm.t1, tm.t2, tm.t3, + (int)dl->rx_level-110, hexdump(ccch->data, sizeof(ccch->data))); meas->last_fn = ntohl(dl->frame_nr);