pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/34142 )


Change subject: l1gprs: Log slotmask when logging TBF
......................................................................

l1gprs: Log slotmask when logging TBF

Change-Id: Ib96b01c591dbcc6aa9e0527e0be499ef8aee2863
---
M src/shared/l1gprs.c
1 file changed, 13 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/42/34142/1

diff --git a/src/shared/l1gprs.c b/src/shared/l1gprs.c
index ff726ae..81fef9c 100644
--- a/src/shared/l1gprs.c
+++ b/src/shared/l1gprs.c
@@ -48,9 +48,9 @@
 #define LOG_TBF_CFG_REQ_ARGS(req) \
        (req)->tbf_ref, (req)->slotmask, ntohl((req)->start_fn)

-#define LOG_TBF_FMT "%cL-TBF#%03d"
+#define LOG_TBF_FMT "%cL-TBF#%03d(slotmask=0x%02x)"
 #define LOG_TBF_ARGS(tbf) \
-       (tbf)->uplink ? 'U' : 'D', tbf->tbf_ref
+       (tbf)->uplink ? 'U' : 'D', (tbf)->tbf_ref, (tbf)->slotmask

 #define TDMA_FN_INVALID 0xffffffff

@@ -533,7 +533,7 @@
                tbf = l1gprs_find_tbf(gprs, true, req->tbf_ref);
                if (tbf == NULL) {
                        LOGP_GPRS(gprs, LOGL_ERROR, "%s(): " LOG_TBF_FMT " not 
found\n",
-                                 __func__, 'U', req->tbf_ref);
+                                 __func__, 'U', req->tbf_ref, req->slotmask);
                        return -ENOENT;
                }
                l1gprs_unregister_tbf(gprs, tbf);
@@ -594,7 +594,7 @@
                tbf = l1gprs_find_tbf(gprs, false, req->tbf_ref);
                if (tbf == NULL) {
                        LOGP_GPRS(gprs, LOGL_ERROR, "%s(): " LOG_TBF_FMT " not 
found\n",
-                                 __func__, 'D', req->tbf_ref);
+                                 __func__, 'D', req->tbf_ref, req->slotmask);
                        return -ENOENT;
                }
                l1gprs_unregister_tbf(gprs, tbf);

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/34142
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ib96b01c591dbcc6aa9e0527e0be499ef8aee2863
Gerrit-Change-Number: 34142
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to