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.
This commit is contained in:
Sjoerd Simons
2014-08-26 20:37:05 +02:00
committed by Lennart Poettering
parent bb19cb1707
commit 498cfc230a
+1 -1
View File
@@ -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;
}