From da927ba997d68401563b927f92e6e40e021a8e5c Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Fri, 28 Nov 2014 13:19:16 +0100 Subject: treewide: no need to negate errno for log_*_errno() It corrrectly handles both positive and negative errno values. --- src/cgls/cgls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cgls') diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c index 7fc346d6f5..71921c4a80 100644 --- a/src/cgls/cgls.c +++ b/src/cgls/cgls.c @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) { r = bus_open_transport(BUS_TRANSPORT_LOCAL, NULL, false, &bus); if (r < 0) { - log_error_errno(-r, "Failed to create bus connection: %m"); + log_error_errno(r, "Failed to create bus connection: %m"); goto finish; } @@ -206,7 +206,7 @@ int main(int argc, char *argv[]) { m = strappenda("/run/systemd/machines/", arg_machine); r = parse_env_file(m, NEWLINE, "SCOPE", &scope, NULL); if (r < 0) { - log_error_errno(-r, "Failed to get machine path: %m"); + log_error_errno(r, "Failed to get machine path: %m"); goto finish; } @@ -257,7 +257,7 @@ int main(int argc, char *argv[]) { } if (r < 0) { - log_error_errno(-r, "Failed to list cgroup tree %s: %m", root); + log_error_errno(r, "Failed to list cgroup tree %s: %m", root); retval = EXIT_FAILURE; } else retval = EXIT_SUCCESS; -- cgit v1.2.3-54-g00ecf