chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git]
/
src
/
login
/
logind-button.c
diff --git
a/src/login/logind-button.c
b/src/login/logind-button.c
index e380dc0611b75877b2547c91a9110c77539fac16..d2cc43084538f33e42ab2a9d842fccf64fe9538f 100644
(file)
--- 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
("Failed to add button event: %s", strerror(-r)
);
+ log_error
_errno(-r, "Failed to add button event: %m"
);
goto fail;
}