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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-button.c b/src/login/logind-button.c
index 9c0c6302a9..1afb01fc68 100644
--- a/src/login/logind-button.c
+++ b/src/login/logind-button.c
@@ -251,12 +251,12 @@ int button_open(Button *b) {
b->fd = open(p, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
if (b->fd < 0) {
- log_warning("Failed to open %s: %m", b->name);
+ log_warning_errno(errno, "Failed to open %s: %m", b->name);
return -errno;
}
if (ioctl(b->fd, EVIOCGNAME(sizeof(name)), name) < 0) {
- log_error("Failed to get input name: %m");
+ log_error_errno(errno, "Failed to get input name: %m");
r = -errno;
goto fail;
}