Change in libosmocore[master]: gprs_ns2: correct mtu value in the log line

lynxis lazus gerrit-no-reply at lists.osmocom.org
Fri Jul 2 15:38:19 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/24828 )


Change subject: gprs_ns2: correct mtu value in the log line
......................................................................

gprs_ns2: correct mtu value in the log line

The log line should describe what's reported towards the NS user
and not the NSE MTU itself

Related: OS#5192
Change-Id: I3f5445a1ba8c89c4023ff48be15a80569a128528
---
M src/gb/gprs_ns2.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/28/24828/1

diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index a8e646b..3eb59e5 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -562,11 +562,11 @@
 		nsp.u.status.nsvc = gprs_ns2_ll_str_buf(nsvc_str, sizeof(nsvc_str), nsvc);
 		LOGNSVC(nsvc, LOGL_NOTICE, "NS-STATUS.ind(bvci=%05u): cause=%s, transfer=%d, first=%d, mtu=%d\n",
 			nsp.bvci, gprs_ns2_aff_cause_prim_str(nsp.u.status.cause),
-			nsp.u.status.transfer, nsp.u.status.first, nse->mtu);
+			nsp.u.status.transfer, nsp.u.status.first, nsp.u.status.mtu);
 	} else {
 		LOGNSE(nse, LOGL_NOTICE, "NS-STATUS.ind(bvci=%05u): cause=%s, transfer=%d, first=%d, mtu=%d\n",
 			nsp.bvci, gprs_ns2_aff_cause_prim_str(nsp.u.status.cause),
-			nsp.u.status.transfer, nsp.u.status.first, nse->mtu);
+			nsp.u.status.transfer, nsp.u.status.first, nsp.u.status.mtu);
 	}
 
 	osmo_prim_init(&nsp.oph, SAP_NS, GPRS_NS2_PRIM_STATUS, PRIM_OP_INDICATION, NULL);

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I3f5445a1ba8c89c4023ff48be15a80569a128528
Gerrit-Change-Number: 24828
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210702/067f7d7d/attachment-0001.htm>


More information about the gerrit-log mailing list