diff options
author | Mrinal Mishra <mrinal.mishra@radisys.com> | 2016-11-28 19:46:50 +0530 |
---|---|---|
committer | arvind.sirsikar <arvind.sirsikar@radisys.com> | 2016-12-02 09:15:53 +0000 |
commit | 0e63644d14b1e4513241739ca67f3bf88d5093db (patch) | |
tree | 89741bddc256d16a9f4aa58a0741d82c75a47604 | |
parent | 34bfbdaf9e94bc22e2516f32b9f5c8c088a19628 (diff) |
Add debugging log for RLC data block decoding
Added debugging log for RLC UL Data Block decoding for both GPRS/EGPRS cases.
Change-Id: I8c197bdc4cd1330cbab0adfd188336d27682cec4
-rw-r--r-- | src/decoding.cpp | 9 | ||||
-rw-r--r-- | tests/tbf/TbfTest.err | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/decoding.cpp b/src/decoding.cpp index 6ae4b16c..0dbb10aa 100644 --- a/src/decoding.cpp +++ b/src/decoding.cpp @@ -76,6 +76,9 @@ static int parse_extensions_egprs(const uint8_t *data, unsigned int data_len, } else if (li->li == 127 && li->e == 1) { /* TS 44.060, table 10.4.14a.1, row 3 & 5 */ /* only filling bytes left */ + LOGP(DRLCMACUL, LOGL_DEBUG, "UL DATA LI contains " + "only filling bytes with extention octet: LI=%d, E=%d, count=%d\n", + li->li, li->e, num_chunks); break; } else if (li->li > 0) { /* TS 44.060, table 10.4.14a.1, row 1 & 2b */ @@ -88,6 +91,9 @@ static int parse_extensions_egprs(const uint8_t *data, unsigned int data_len, return -EINVAL; } + LOGP(DRLCMACUL, LOGL_DEBUG, "UL DATA LI contains " + "extention octet: LI=%d, E=%d, count=%d\n", + li->li, li->e, num_chunks); num_chunks += 1; if (e == 1) { @@ -161,6 +167,9 @@ static int parse_extensions_gprs(const uint8_t *data, unsigned int data_len, chunks[num_chunks].is_complete = li->li || is_last_block; + LOGP(DRLCMACUL, LOGL_DEBUG, "UL DATA LI contains " + "extention octet: LI=%d, M=%d, E=%d, count=%d\n", + li->li, li->m, li->e, num_chunks); num_chunks += 1; if (e == 1 && m == 1) { diff --git a/tests/tbf/TbfTest.err b/tests/tbf/TbfTest.err index a6808122..2647551a 100644 --- a/tests/tbf/TbfTest.err +++ b/tests/tbf/TbfTest.err @@ -6460,6 +6460,7 @@ TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS): data_length=44, data=01 00 0 - Raising V(R) to 2 - Taking block 1 out, raising V(Q) to 2 - Assembling frames: (len=44) +UL DATA LI contains extention octet: LI=0, E=1, count=0 TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS) complete UL frame len=44 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS) len=44 No bctx |