chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
machined: if /var/lib/machines is backed by a loop file, resize it on "machinectl...
[elogind.git]
/
src
/
cgtop
/
cgtop.c
diff --git
a/src/cgtop/cgtop.c
b/src/cgtop/cgtop.c
index 932a7ba7c6c360c8bf5d1c2ad8842d7f47e0c21b..3c7ad40605a0e8ac83e2692b83eeed4c527089dc 100644
(file)
--- a/
src/cgtop/cgtop.c
+++ b/
src/cgtop/cgtop.c
@@
-748,7
+748,7
@@
int main(int argc, char *argv[]) {
if (r == -ETIMEDOUT)
continue;
if (r < 0) {
if (r == -ETIMEDOUT)
continue;
if (r < 0) {
- log_error
("Couldn't read key: %s", strerror(-r)
);
+ log_error
_errno(r, "Couldn't read key: %m"
);
goto finish;
}
}
goto finish;
}
}
@@
-842,7
+842,7
@@
finish:
group_hashmap_free(b);
if (r < 0) {
group_hashmap_free(b);
if (r < 0) {
- log_error
("Exiting with failure: %s", strerror(-r)
);
+ log_error
_errno(r, "Exiting with failure: %m"
);
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}