diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-02-02 15:03:17 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-02-04 11:03:58 +0100 |
commit | 19df01f5295941ce9fa2933fd8e4bf5af8417ac8 (patch) | |
tree | ab7455b5519a3f190b9e40bee6cd0b8c83ceb7bc /src/machine | |
parent | b858d7d9d2c63aef8cdee78b0a6a168ed1984df3 (diff) | |
download | systemd-19df01f5295941ce9fa2933fd8e4bf5af8417ac8.tar.gz |
machinectl: fix argument index in error log
Fixes #11628.
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machinectl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 1e7cfc64d4..30f2e26a1e 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; } |