[PATCH 4/4] gtp.c: fix an error log.

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/OpenBSC@lists.osmocom.org/.

Neels Hofmeyr nhofmeyr at sysmocom.de
Mon Oct 12 12:00:22 UTC 2015


Fix: the code handles fd1u but prints fd1c.
---
 gtp/gtp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gtp/gtp.c b/gtp/gtp.c
index 2a39934..73ed76a 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -795,8 +795,8 @@ int gtp_new(struct gsn_t **gsn, char *statedir, struct in_addr *listen,
 	if (bind((*gsn)->fd1u, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
 		(*gsn)->err_socket++;
 		LOGP_WITH_ADDR(DLGTP, LOGL_ERROR, addr,
-			"bind(fd1c=%d) failed: Error = %s\n",
-			(*gsn)->fd1c, strerror(errno));
+			"bind(fd1u=%d) failed: Error = %s\n",
+			(*gsn)->fd1u, strerror(errno));
 		return -1;
 	}
 
-- 
2.1.4




More information about the OpenBSC mailing list