diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-11-15 19:06:00 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-11-15 19:06:00 +0000 |
commit | 6678a497928ce105c4bce21c4d2eba4b3ecd4259 (patch) | |
tree | 597ce737bbf8883965d6c907089312841f572a59 /test/src/server.c | |
parent | 626810b928939e375f83b0f234a854d69339227c (diff) |
Testsuite: better debug output from "server" script-runner
Diffstat (limited to 'test/src/server.c')
-rw-r--r-- | test/src/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |