summaryrefslogtreecommitdiff
path: root/src/login/logind-button.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/logind-button.c')
-rw-r--r--src/login/logind-button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-button.c b/src/login/logind-button.c
index d2cc430845..9c0c6302a9 100644
--- a/src/login/logind-button.c
+++ b/src/login/logind-button.c
@@ -263,7 +263,7 @@ int button_open(Button *b) {
r = sd_event_add_io(b->manager->event, &b->io_event_source, b->fd, EPOLLIN, button_dispatch, b);
if (r < 0) {
- log_error_errno(-r, "Failed to add button event: %m");
+ log_error_errno(r, "Failed to add button event: %m");
goto fail;
}