aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-10-12 13:42:17 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-10-12 13:56:53 +0200
commit2bab4815ad67c069dabbe5d11297edd7ab686050 (patch)
tree2abf2978216c9ca1a34a94f46bd12bbb9975dda9
parentc5e01d68c32489454e4457aeb4686b4b72df6ca1 (diff)
gtp.c: fix an error log.
Fix: the code handles fd1u but prints fd1c.
-rw-r--r--gtp/gtp.c4
1 files 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;
}