shared/socket-label: fix error message

Was: Failed to listen on [::]:2000: Success
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-06-29 22:06:48 -04:00
parent b31f535c9a
commit ef274c6444

View File

@@ -166,7 +166,7 @@ int make_socket_fd(int log_level, const char* address, int flags) {
}
if (fd < 0)
log_error("Failed to listen on %s: %s", p, strerror(-r));
log_error("Failed to listen on %s: %s", p, strerror(-fd));
else
log_full(log_level, "Listening on %s", p);
}