mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
qemu-option: do not suggest using the delay option
The "delay" option was a hack that was introduced to allow writing "nodelay". We are adding a "nodelay" option to be used as "nodelay=on", so recommend it instead of "delay". This is quite ugly, but a proper deprecation of "delay" cannot be done if QEMU starts suggesting it. Since it's the only case I opted for this very much ad-hoc patch. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f3126d65b3
commit
fe636424ca
2 changed files with 11 additions and 1 deletions
|
@ -785,7 +785,11 @@ static const char *get_opt_name_value(const char *params,
|
|||
}
|
||||
if (!is_help && warn_on_flag) {
|
||||
warn_report("short-form boolean option '%s%s' deprecated", prefix, *name);
|
||||
error_printf("Please use %s=%s instead\n", *name, *value);
|
||||
if (g_str_equal(*name, "delay")) {
|
||||
error_printf("Please use nodelay=%s instead\n", prefix[0] ? "on" : "off");
|
||||
} else {
|
||||
error_printf("Please use %s=%s instead\n", *name, *value);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue