mirror of
https://github.com/systemd/systemd.git
synced 2026-07-12 18:44:14 +00:00
shared/socket-label: fix error message
Was: Failed to listen on [::]:2000: Success
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user