diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 13:19:16 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 13:29:21 +0100 |
commit | da927ba997d68401563b927f92e6e40e021a8e5c (patch) | |
tree | 71764cd998aef07b8943c5206c9307a93ba9c528 /src/libsystemd-terminal/modeset.c | |
parent | 0a1beeb64207eaa88ab9236787b1cbc2f704ae14 (diff) |
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
Diffstat (limited to 'src/libsystemd-terminal/modeset.c')
-rw-r--r-- | src/libsystemd-terminal/modeset.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsystemd-terminal/modeset.c b/src/libsystemd-terminal/modeset.c index 9871e306e4..54faec8fee 100644 --- a/src/libsystemd-terminal/modeset.c +++ b/src/libsystemd-terminal/modeset.c @@ -147,13 +147,13 @@ static int modeset_new(Modeset **out) { r = sd_pid_get_session(getpid(), &m->session); if (r < 0) { - log_error_errno(-r, "Cannot retrieve logind session: %m"); + log_error_errno(r, "Cannot retrieve logind session: %m"); return r; } r = sd_session_get_seat(m->session, &m->seat); if (r < 0) { - log_error_errno(-r, "Cannot retrieve seat of logind session: %m"); + log_error_errno(r, "Cannot retrieve seat of logind session: %m"); return r; } @@ -310,14 +310,14 @@ static int modeset_sysview_fn(sysview_context *c, void *userdata, sysview_event modeset_grdev_fn, m); if (r < 0) { - log_error_errno(-r, "Cannot create grdev session: %m"); + log_error_errno(r, "Cannot create grdev session: %m"); return r; } if (m->managed) { r = sysview_session_take_control(ev->session_add.session); if (r < 0) { - log_error_errno(-r, "Cannot request session control: %m"); + log_error_errno(r, "Cannot request session control: %m"); return r; } } @@ -359,7 +359,7 @@ static int modeset_sysview_fn(sysview_context *c, void *userdata, sysview_event case SYSVIEW_EVENT_SESSION_CONTROL: r = ev->session_control.error; if (r < 0) { - log_error_errno(-r, "Cannot acquire session control: %m"); + log_error_errno(r, "Cannot acquire session control: %m"); return r; } |