mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
vl: fix qemu_validate_options() indention
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240905141211.1253307-2-kraxel@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
abb1565d3d
commit
118a2991bb
1 changed files with 8 additions and 8 deletions
16
system/vl.c
16
system/vl.c
|
@ -2427,15 +2427,15 @@ static void qemu_validate_options(const QDict *machine_opts)
|
||||||
const char *kernel_cmdline = qdict_get_try_str(machine_opts, "append");
|
const char *kernel_cmdline = qdict_get_try_str(machine_opts, "append");
|
||||||
|
|
||||||
if (kernel_filename == NULL) {
|
if (kernel_filename == NULL) {
|
||||||
if (kernel_cmdline != NULL) {
|
if (kernel_cmdline != NULL) {
|
||||||
error_report("-append only allowed with -kernel option");
|
error_report("-append only allowed with -kernel option");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (initrd_filename != NULL) {
|
if (initrd_filename != NULL) {
|
||||||
error_report("-initrd only allowed with -kernel option");
|
error_report("-initrd only allowed with -kernel option");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loadvm && incoming) {
|
if (loadvm && incoming) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue