diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-08 09:30:31 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-08 09:34:45 +0200 |
commit | b3f713bd7be2af9bf7c3168099d35df089020164 (patch) | |
tree | 1b27082f33f54deb786080987dcebb5532362e69 | |
parent | 3c91cb881d6a5126673e88d8421a207efec6a42d (diff) |
l1: Fix warning by logging acc_delay
The acc_delay value is computed but not used, resulting in a warning.
This commit adds a logging message it case the function is executed
to make the warning disappear. It also adds a CPP warning to remind
of the incomplete implementation.
Addresses:
sysmo_l1_if.c:226:10: error: variable ‘acc_delay’ set but not used
[-Werror=unused-but-set-variable]
Sponsored-by: On-Waves ehf
-rw-r--r-- | src/sysmo_l1_if.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sysmo_l1_if.c b/src/sysmo_l1_if.c index c0721b87..6e1e9e47 100644 --- a/src/sysmo_l1_if.c +++ b/src/sysmo_l1_if.c @@ -235,6 +235,12 @@ static int handle_ph_ra_ind(struct femtol1_hdl *fl1h, GsmL1_PhRaInd_t *ra_ind) acc_delay = 0; else acc_delay = ra_ind->measParam.i16BurstTiming >> 2; + + LOGP(DL1IF, LOGL_NOTICE, "got (P)RACH request, TA = %u (ignored)\n", + acc_delay); + +#warning "The (P)RACH request is just dropped here" + #if 0 if (acc_delay > bts->max_ta) { LOGP(DL1C, LOGL_INFO, "ignoring RACH request %u > max_ta(%u)\n", |