diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-10-09 11:38:26 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-10-10 08:21:00 +0000 |
commit | d49915eccff46c9ff6c1549b35cc0c9d3fe81abe (patch) | |
tree | 9feeacaf5babdc28d64cfec779813f0c76130531 | |
parent | ec33b0397f5d71248c5834513d4be7b9b0e46366 (diff) |
l1sap: Improve log msg when frame diff >1
Print the two fn values to understand better the wrong behaviour.
Change-Id: I4f7b3ffbf7ce3a8d8d6872e4281ef228f4c5527f
-rw-r--r-- | src/common/l1sap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 1b3a3ad8..763b355a 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -456,7 +456,8 @@ static int l1sap_info_time_ind(struct gsm_bts *bts, frames_expired = info_time_ind->fn - btsb->gsm_time.fn; if (frames_expired > 1) { LOGP(DL1P, LOGL_ERROR, - "Invalid condition detected: Frame difference is > 1!\n"); + "Invalid condition detected: Frame difference is %"PRIu32"-%"PRIu32" > 1!\n", + info_time_ind->fn, btsb->gsm_time.fn); } /* Update our data structures with the current GSM time */ |