chiark / gitweb /
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git] / src / activate / activate.c
index 0a1df37f353d8e9e72bbcc85f8335de4faac04bb..f4f41ed36cc31870e3a74fb8fbe27d4e7b2db01e 100644 (file)
@@ -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;
                 }