chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git]
/
src
/
activate
/
activate.c
diff --git
a/src/activate/activate.c
b/src/activate/activate.c
index 0a1df37f353d8e9e72bbcc85f8335de4faac04bb..f4f41ed36cc31870e3a74fb8fbe27d4e7b2db01e 100644
(file)
--- a/
src/activate/activate.c
+++ b/
src/activate/activate.c
@@
-103,7
+103,7
@@
static int open_sockets(int *epoll_fd, bool accept) {
fd = make_socket_fd(LOG_DEBUG, *address, SOCK_STREAM | (arg_accept*SOCK_CLOEXEC));
if (fd < 0) {
log_open();
- log_error
("Failed to open '%s': %s", *address, strerror(-fd)
);
+ log_error
_errno(-fd, "Failed to open '%s': %m", *address
);
return fd;
}