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
/
remount-fs
/
remount-fs.c
diff --git
a/src/remount-fs/remount-fs.c
b/src/remount-fs/remount-fs.c
index cd7cfe7a474a3aa73405cb2179bbd0b2b2eea593..e30c3443100517ba49d775114e2d253bb3956835 100644
(file)
--- a/
src/remount-fs/remount-fs.c
+++ b/
src/remount-fs/remount-fs.c
@@
-120,7
+120,7
@@
int main(int argc, char *argv[]) {
k = hashmap_put(pids, UINT_TO_PTR(pid), s);
if (k < 0) {
- log_error
("Failed to add PID to set: %s", strerror(-k)
);
+ log_error
_errno(-k, "Failed to add PID to set: %m"
);
ret = EXIT_FAILURE;
continue;
}