summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-08-06 19:03:27 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-13 12:59:29 +0200
commite555d12635007da7263d0a43ed7307e70a07720d (patch)
treef08363cd66e2cbb5ac1bdad857db31274fa0940d /src
parent04857cd801022d9f9933efb484c6253572f09870 (diff)
downloadsystemd-e555d12635007da7263d0a43ed7307e70a07720d.tar.gz
logind: make better use of logging functions
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-seat.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c
index 824bef02a2..d67ff116e4 100644
--- a/src/login/logind-seat.c
+++ b/src/login/logind-seat.c
@@ -199,10 +199,8 @@ int seat_preallocate_vts(Seat *s) {
int q;
q = vt_allocate(i);
- if (q < 0) {
- log_error_errno(q, "Failed to preallocate VT %u: %m", i);
- r = q;
- }
+ if (q < 0)
+ r = log_error_errno(q, "Failed to preallocate VT %u: %m", i);
}
return r;
@@ -219,9 +217,9 @@ int seat_apply_acls(Seat *s, Session *old_active) {
!!s->active, s->active ? s->active->user->uid : 0);
if (r < 0)
- log_error_errno(r, "Failed to apply ACLs: %m");
+ return log_error_errno(r, "Failed to apply ACLs: %m");
- return r;
+ return 0;
}
int seat_set_active(Seat *s, Session *session) {