net: prettier logging in bind 1.9
authorRobert Swiecki <robert@swiecki.net>
Wed, 11 Oct 2017 13:43:59 +0000 (15:43 +0200)
committerRobert Swiecki <robert@swiecki.net>
Wed, 11 Oct 2017 13:43:59 +0000 (15:43 +0200)
net.c

diff --git a/net.c b/net.c
index d55baf4dbda7a99305cbecd2232b0a218abfd432..12f39d0c00143b74e2d9b37a27a53a0a12910c36 100644 (file)
--- a/net.c
+++ b/net.c
@@ -229,7 +229,7 @@ int netGetRecvSocket(const char* bindhost, int port)
        };
        if (bind(sockfd, (struct sockaddr*)&addr, sizeof(addr)) == -1) {
                close(sockfd);
-               PLOG_E("bind(host:[%s (orig:'%s')], port:%d)", bindaddr, bindhost, port);
+               PLOG_E("bind(host:[%s] (orig:'%s'), port:%d)", bindaddr, bindhost, port);
                return -1;
        }
        if (listen(sockfd, SOMAXCONN) == -1) {