summaryrefslogtreecommitdiff
path: root/src/login/user-sessions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/user-sessions.c')
-rw-r--r--src/login/user-sessions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/user-sessions.c b/src/login/user-sessions.c
index fb0afc5e50..6edb823e8c 100644
--- a/src/login/user-sessions.c
+++ b/src/login/user-sessions.c
@@ -44,7 +44,7 @@ int main(int argc, char*argv[]) {
int r = 0;
if (unlink("/run/nologin") < 0 && errno != ENOENT) {
- log_error("Failed to remove /run/nologin file: %m");
+ log_error_errno(errno, "Failed to remove /run/nologin file: %m");
r = -errno;
}
@@ -55,7 +55,7 @@ int main(int argc, char*argv[]) {
* exist), don't complain */
if (errno != EROFS || access("/etc/nologin", F_OK) >= 0) {
- log_error("Failed to remove /etc/nologin file: %m");
+ log_error_errno(errno, "Failed to remove /etc/nologin file: %m");
return EXIT_FAILURE;
}
}