logind: make better use of logging functions
This commit is contained in:
parent
04857cd801
commit
e555d12635
|
@ -199,10 +199,8 @@ int seat_preallocate_vts(Seat *s) {
|
||||||
int q;
|
int q;
|
||||||
|
|
||||||
q = vt_allocate(i);
|
q = vt_allocate(i);
|
||||||
if (q < 0) {
|
if (q < 0)
|
||||||
log_error_errno(q, "Failed to preallocate VT %u: %m", i);
|
r = log_error_errno(q, "Failed to preallocate VT %u: %m", i);
|
||||||
r = q;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
@ -219,9 +217,9 @@ int seat_apply_acls(Seat *s, Session *old_active) {
|
||||||
!!s->active, s->active ? s->active->user->uid : 0);
|
!!s->active, s->active ? s->active->user->uid : 0);
|
||||||
|
|
||||||
if (r < 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) {
|
int seat_set_active(Seat *s, Session *session) {
|
||||||
|
|
Loading…
Reference in a new issue