projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b858d7d
)
machinectl: fix argument index in error log
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 2 Feb 2019 14:03:17 +0000
(15:03 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 4 Feb 2019 10:03:58 +0000
(11:03 +0100)
Fixes #11628.
src/machine/machinectl.c
patch
|
blob
|
history
diff --git
a/src/machine/machinectl.c
b/src/machine/machinectl.c
index
1e7cfc6
..
30f2e26
100644
(file)
--- 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;
}