chiark / gitweb /
tree-wide usage of %m specifier instead of strerror(errno)
[elogind.git] / src / journal / journald-console.c
index 1ee3afeacc37010b7411e34019a3e6250a508417..04c4424a46c7c72f5344e051a10b8df56f5e4305 100644 (file)
@@ -100,12 +100,12 @@ void server_forward_console(
 
         fd = open_terminal(tty, O_WRONLY|O_NOCTTY|O_CLOEXEC);
         if (fd < 0) {
-                log_debug("Failed to open %s for logging: %s", tty, strerror(errno));
+                log_debug("Failed to open %s for logging: %m", tty);
                 goto finish;
         }
 
         if (writev(fd, iovec, n) < 0)
-                log_debug("Failed to write to %s for logging: %s", tty, strerror(errno));
+                log_debug("Failed to write to %s for logging: %m", tty);
 
         close_nointr_nofail(fd);