Change in osmo-pcu[master]: decoding.cpp: Improve logging in malformed UL data parsing

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Jul 1 16:11:52 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/19095 )

Change subject: decoding.cpp: Improve logging in malformed UL data parsing
......................................................................

decoding.cpp: Improve logging in malformed UL data parsing

Change-Id: Ic4ad14b88fddde8d9e62e0a2587b501d36821f01
---
M src/decoding.cpp
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/decoding.cpp b/src/decoding.cpp
index 064c974..0437994 100644
--- a/src/decoding.cpp
+++ b/src/decoding.cpp
@@ -282,8 +282,8 @@
 		offs += chunks[i].length;
 		if (offs > data_len) {
 			LOGP(DRLCMACUL, LOGL_NOTICE, "UL DATA out of block "
-				"border, chunk idx: %d, size: %d\n",
-				i, chunks[i].length);
+				"border, chunk idx: %d, offset: %u, size: %d, data_len: %u\n",
+				i, offs, chunks[i].length, data_len);
 			return -EINVAL;
 		}
 	}

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ic4ad14b88fddde8d9e62e0a2587b501d36821f01
Gerrit-Change-Number: 19095
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200701/ccb818a7/attachment.htm>


More information about the gerrit-log mailing list