From 6678a497928ce105c4bce21c4d2eba4b3ecd4259 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Wed, 15 Nov 2017 19:06:00 +0000 Subject: Testsuite: better debug output from "server" script-runner --- test/src/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/src/server.c') diff --git a/test/src/server.c b/test/src/server.c index 5af86d96f..d433ebe0e 100644 --- a/test/src/server.c +++ b/test/src/server.c @@ -401,7 +401,7 @@ else sin6.sin6_addr = anyaddr6; if (bind(listen_socket[i], (struct sockaddr *)&sin6, sizeof(sin6)) < 0) { - printf("IPv6 socket bind() failed: %s\n", strerror(errno)); + printf("IPv6 socket bind(port %d) failed: %s\n", port, strerror(errno)); exit(1); } } @@ -420,7 +420,7 @@ else if (bind(listen_socket[i], (struct sockaddr *)&sin4, sizeof(sin4)) < 0) if (listen_socket[v6n] < 0 || errno != EADDRINUSE) { - printf("IPv4 socket bind() failed: %s\n", strerror(errno)); + printf("IPv4 socket bind(port %d) failed: %s\n", port, strerror(errno)); exit(1); } else -- cgit v1.2.3