From: Yu Watanabe Date: Sat, 2 Feb 2019 14:03:17 +0000 (+0100) Subject: machinectl: fix argument index in error log X-Git-Tag: v241~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19df01f5295941ce9fa2933fd8e4bf5af8417ac8;p=thirdparty%2Fsystemd.git machinectl: fix argument index in error log Fixes #11628. --- diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 1e7cfc64d47..30f2e26a1e8 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -1739,7 +1739,7 @@ static int start_machine(int argc, char *argv[], void *userdata) { if (r < 0) return r; if (r == 0) { - log_error("Machine image '%s' does not exist.", argv[1]); + log_error("Machine image '%s' does not exist.", argv[i]); return -ENXIO; } @@ -1811,7 +1811,7 @@ static int enable_machine(int argc, char *argv[], void *userdata) { if (r < 0) return r; if (r == 0) { - log_error("Machine image '%s' does not exist.", argv[1]); + log_error("Machine image '%s' does not exist.", argv[i]); return -ENXIO; }