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-inhibit.c
diff --git
a/src/login/logind-inhibit.c
b/src/login/logind-inhibit.c
index a9e14af8dbf29148b1f510a765740f9d70f17a1b..198e7df78c22b510c30e10abcda2c4d693a476f6 100644
(file)
--- a/
src/login/logind-inhibit.c
+++ b/
src/login/logind-inhibit.c
@@
-138,7
+138,7
@@
int inhibitor_save(Inhibitor *i) {
finish:
if (r < 0)
finish:
if (r < 0)
- log_error
("Failed to save inhibit data %s: %s", i->state_file, strerror(-r)
);
+ log_error
_errno(-r, "Failed to save inhibit data %s: %m", i->state_file
);
return r;
}
return r;
}