Review at  https://gerrit.osmocom.org/4165

l1sap: Improve log msg when frame diff >1

Print the two fn values to understand better the wrong behaviour.

Change-Id: I4f7b3ffbf7ce3a8d8d6872e4281ef228f4c5527f
---
M src/common/l1sap.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/65/4165/1

diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 1b3a3ad..763b355 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -456,7 +456,8 @@
        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 */

-- 
To view, visit https://gerrit.osmocom.org/4165
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f7b3ffbf7ce3a8d8d6872e4281ef228f4c5527f
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <[email protected]>

Reply via email to