chiark / gitweb /
treewide: no need to negate errno for log_*_errno()
[elogind.git] / src / cgtop / cgtop.c
index 79592aaa171874660f37e9288df4ecf35962a3aa..3c7ad40605a0e8ac83e2692b83eeed4c527089dc 100644 (file)
@@ -748,7 +748,7 @@ int main(int argc, char *argv[]) {
                         if (r == -ETIMEDOUT)
                                 continue;
                         if (r < 0) {
-                                log_error_errno(-r, "Couldn't read key: %m");
+                                log_error_errno(r, "Couldn't read key: %m");
                                 goto finish;
                         }
                 }
@@ -842,7 +842,7 @@ finish:
         group_hashmap_free(b);
 
         if (r < 0) {
-                log_error_errno(-r, "Exiting with failure: %m");
+                log_error_errno(r, "Exiting with failure: %m");
                 return EXIT_FAILURE;
         }