summaryrefslogtreecommitdiff
path: root/src/shared/socket-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/socket-util.c')
-rw-r--r--src/shared/socket-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c
index 6bdcb99205..b5b001a6f2 100644
--- a/src/shared/socket-util.c
+++ b/src/shared/socket-util.c
@@ -658,7 +658,7 @@ int getnameinfo_pretty(int fd, char **ret) {
assert(ret);
if (getsockname(fd, &sa.sa, &salen) < 0) {
- log_error("getsockname(%d) failed: %m", fd);
+ log_error_errno(errno, "getsockname(%d) failed: %m", fd);
return -errno;
}