summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/console')
-rw-r--r--src/console/consoled-session.c2
-rw-r--r--src/console/consoled-terminal.c8
-rw-r--r--src/console/consoled.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/console/consoled-session.c b/src/console/consoled-session.c
index abdb1bc481..c81bb306b7 100644
--- a/src/console/consoled-session.c
+++ b/src/console/consoled-session.c
@@ -231,7 +231,7 @@ void session_dirty(Session *s) {
r = sd_event_source_set_enabled(s->redraw_src, SD_EVENT_ONESHOT);
if (r < 0)
- log_error_errno(-r, "Cannot enable redraw-source: %m");
+ log_error_errno(r, "Cannot enable redraw-source: %m");
}
void session_add_device(Session *s, sysview_device *device) {
diff --git a/src/console/consoled-terminal.c b/src/console/consoled-terminal.c
index 7d0f646c7e..166a43b5b1 100644
--- a/src/console/consoled-terminal.c
+++ b/src/console/consoled-terminal.c
@@ -52,7 +52,7 @@ static int terminal_pty_fn(Pty *pty, void *userdata, unsigned int event, const v
case PTY_DATA:
r = term_screen_feed_text(t->screen, ptr, size);
if (r < 0)
- log_error_errno(-r, "Cannot update screen state: %m");
+ log_error_errno(r, "Cannot update screen state: %m");
workspace_dirty(t->workspace);
break;
@@ -128,12 +128,12 @@ void terminal_resize(Terminal *t) {
if (t->pty) {
r = pty_resize(t->pty, width, height);
if (r < 0)
- log_error_errno(-r, "Cannot resize pty: %m");
+ log_error_errno(r, "Cannot resize pty: %m");
}
r = term_screen_resize(t->screen, width, height);
if (r < 0)
- log_error_errno(-r, "Cannot resize screen: %m");
+ log_error_errno(r, "Cannot resize screen: %m");
}
void terminal_run(Terminal *t) {
@@ -151,7 +151,7 @@ void terminal_run(Terminal *t) {
term_screen_get_width(t->screen),
term_screen_get_height(t->screen));
if (pid < 0) {
- log_error_errno(-pid, "Cannot fork PTY: %m");
+ log_error_errno(pid, "Cannot fork PTY: %m");
return;
} else if (pid == 0) {
/* child */
diff --git a/src/console/consoled.c b/src/console/consoled.c
index f76a357c97..6f65dcdcb9 100644
--- a/src/console/consoled.c
+++ b/src/console/consoled.c
@@ -45,7 +45,7 @@ int main(int argc, char *argv[]) {
r = manager_new(&m);
if (r < 0) {
- log_error_errno(-r, "Could not create manager: %m");
+ log_error_errno(r, "Could not create manager: %m");
goto out;
}
@@ -55,7 +55,7 @@ int main(int argc, char *argv[]) {
r = manager_run(m);
if (r < 0) {
- log_error_errno(-r, "Cannot run manager: %m");
+ log_error_errno(r, "Cannot run manager: %m");
goto out;
}