From: Sjoerd Simons Date: Sat, 23 Aug 2014 19:11:44 +0000 (+0200) Subject: systemctl: Correct error message printed when bus_process_wait fails X-Git-Tag: v217~764 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=498cfc230af8f83675be2e92057956f1792969e4;p=thirdparty%2Fsystemd.git systemctl: Correct error message printed when bus_process_wait fails Actually use the variable containing the return code of bus_process_wait when printing the error message as a result of it failing. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index d9b8bee28d7..65348193b7c 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2382,7 +2382,7 @@ static int wait_for_jobs(sd_bus *bus, Set *s) { while (!set_isempty(s)) { q = bus_process_wait(bus); if (q < 0) { - log_error("Failed to wait for response: %s", strerror(-r)); + log_error("Failed to wait for response: %s", strerror(-q)); return q; }