summaryrefslogtreecommitdiff
path: root/src/initctl/initctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/initctl/initctl.c')
-rw-r--r--src/initctl/initctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/initctl/initctl.c b/src/initctl/initctl.c
index 242ad3eca0..a0745af716 100644
--- a/src/initctl/initctl.c
+++ b/src/initctl/initctl.c
@@ -290,8 +290,7 @@ static int server_init(Server *s, unsigned n_sockets) {
r = sd_is_fifo(fd, NULL);
if (r < 0) {
- log_error("Failed to determine file descriptor type: %s",
- strerror(-r));
+ log_error_errno(r, "Failed to determine file descriptor type: %m");
goto fail;
}