]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journald-console.c
treewide: use the negative error codes returned by our functions
[thirdparty/systemd.git] / src / journal / journald-console.c
index 860832cfc80b03a2ef7d0709ea48d94ff4ed2303..89f3d4b42f1bd468cb4a7301be61872565c2c35c 100644 (file)
@@ -106,7 +106,7 @@ void server_forward_console(
 
         fd = open_terminal(tty, O_WRONLY|O_NOCTTY|O_CLOEXEC);
         if (fd < 0) {
-                log_debug_errno(errno, "Failed to open %s for logging: %m", tty);
+                log_debug_errno(fd, "Failed to open %s for logging: %m", tty);
                 return;
         }