summaryrefslogtreecommitdiff
path: root/src/shared/socket-label.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-29 22:06:48 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 22:31:40 -0400
commitef274c6444d5c5aa93ffd58c7ec6c12295bf55dc (patch)
tree747472e38dedc3d8253dade9734174f7b6bcd261 /src/shared/socket-label.c
parentb31f535c9a7af9b5f5c4f5d4e52be9159af72127 (diff)
shared/socket-label: fix error message
Was: Failed to listen on [::]:2000: Success
Diffstat (limited to 'src/shared/socket-label.c')
-rw-r--r--src/shared/socket-label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/socket-label.c b/src/shared/socket-label.c
index eb09779b33..83ea1a9ef8 100644
--- a/src/shared/socket-label.c
+++ b/src/shared/socket-label.c
@@ -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);
}