[PATCH] openggsn[master]: Print address length on conversion error

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/.

Max gerrit-no-reply at lists.osmocom.org
Tue Aug 22 08:40:48 UTC 2017


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

Print address length on conversion error

Change-Id: Id07d0a529c1b1222ab678814f3c2ffd737ce063a
---
M gtp/gtp.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openggsn refs/changes/74/3574/1

diff --git a/gtp/gtp.c b/gtp/gtp.c
index 69405b8..7ebf7a8 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -2293,7 +2293,7 @@
 	if (gsna2in_addr(&addr, &pdp->gsnrc)) {
 		gsn->err_address++;
 		LOGP(DLGTP, LOGL_ERROR,
-			"GSN address conversion failed\n");
+		     "GSN address (len=%u) conversion failed\n", pdp->gsnrc.l);
 		return EOF;
 	}
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id07d0a529c1b1222ab678814f3c2ffd737ce063a
Gerrit-PatchSet: 1
Gerrit-Project: openggsn
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list