vl.c: fix some alignment issues
The misalignment was caused by tabs which were used instead of spaces. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
31fc97c314
commit
99efa84d5c
38
vl.c
38
vl.c
|
@ -2873,7 +2873,7 @@ int main(int argc, char **argv, char **envp)
|
||||||
if (optind >= argc)
|
if (optind >= argc)
|
||||||
break;
|
break;
|
||||||
if (argv[optind][0] != '-') {
|
if (argv[optind][0] != '-') {
|
||||||
hda_opts = drive_add(IF_DEFAULT, 0, argv[optind++], HD_OPTS);
|
hda_opts = drive_add(IF_DEFAULT, 0, argv[optind++], HD_OPTS);
|
||||||
} else {
|
} else {
|
||||||
const QEMUOption *popt;
|
const QEMUOption *popt;
|
||||||
|
|
||||||
|
@ -2918,15 +2918,15 @@ int main(int argc, char **argv, char **envp)
|
||||||
if (drive_def(optarg) == NULL) {
|
if (drive_def(optarg) == NULL) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_set:
|
case QEMU_OPTION_set:
|
||||||
if (qemu_set_option(optarg) != 0)
|
if (qemu_set_option(optarg) != 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_global:
|
case QEMU_OPTION_global:
|
||||||
if (qemu_global_option(optarg) != 0)
|
if (qemu_global_option(optarg) != 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_mtdblock:
|
case QEMU_OPTION_mtdblock:
|
||||||
drive_add(IF_MTD, -1, optarg, MTD_OPTS);
|
drive_add(IF_MTD, -1, optarg, MTD_OPTS);
|
||||||
break;
|
break;
|
||||||
|
@ -2978,7 +2978,7 @@ int main(int argc, char **argv, char **envp)
|
||||||
fprintf(stderr, "qemu: invalid physical CHS format\n");
|
fprintf(stderr, "qemu: invalid physical CHS format\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (hda_opts != NULL) {
|
if (hda_opts != NULL) {
|
||||||
char num[16];
|
char num[16];
|
||||||
snprintf(num, sizeof(num), "%d", cyls);
|
snprintf(num, sizeof(num), "%d", cyls);
|
||||||
qemu_opt_set(hda_opts, "cyls", num);
|
qemu_opt_set(hda_opts, "cyls", num);
|
||||||
|
@ -3152,9 +3152,9 @@ int main(int argc, char **argv, char **envp)
|
||||||
case QEMU_OPTION_S:
|
case QEMU_OPTION_S:
|
||||||
autostart = 0;
|
autostart = 0;
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_k:
|
case QEMU_OPTION_k:
|
||||||
keyboard_layout = optarg;
|
keyboard_layout = optarg;
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_localtime:
|
case QEMU_OPTION_localtime:
|
||||||
rtc_utc = 0;
|
rtc_utc = 0;
|
||||||
break;
|
break;
|
||||||
|
@ -3362,9 +3362,9 @@ int main(int argc, char **argv, char **envp)
|
||||||
case QEMU_OPTION_debugcon:
|
case QEMU_OPTION_debugcon:
|
||||||
add_device_config(DEV_DEBUGCON, optarg);
|
add_device_config(DEV_DEBUGCON, optarg);
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_loadvm:
|
case QEMU_OPTION_loadvm:
|
||||||
loadvm = optarg;
|
loadvm = optarg;
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_full_screen:
|
case QEMU_OPTION_full_screen:
|
||||||
full_screen = 1;
|
full_screen = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -3476,7 +3476,7 @@ int main(int argc, char **argv, char **envp)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_vnc:
|
case QEMU_OPTION_vnc:
|
||||||
#ifdef CONFIG_VNC
|
#ifdef CONFIG_VNC
|
||||||
display_remote++;
|
display_remote++;
|
||||||
vnc_display = optarg;
|
vnc_display = optarg;
|
||||||
|
@ -3514,11 +3514,11 @@ int main(int argc, char **argv, char **envp)
|
||||||
}
|
}
|
||||||
qemu_uuid_set = true;
|
qemu_uuid_set = true;
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_option_rom:
|
case QEMU_OPTION_option_rom:
|
||||||
if (nb_option_roms >= MAX_OPTION_ROMS) {
|
if (nb_option_roms >= MAX_OPTION_ROMS) {
|
||||||
fprintf(stderr, "Too many option ROMs\n");
|
fprintf(stderr, "Too many option ROMs\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
opts = qemu_opts_parse(qemu_find_opts("option-rom"), optarg, 1);
|
opts = qemu_opts_parse(qemu_find_opts("option-rom"), optarg, 1);
|
||||||
if (!opts) {
|
if (!opts) {
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@ -3530,8 +3530,8 @@ int main(int argc, char **argv, char **envp)
|
||||||
fprintf(stderr, "Option ROM file is not specified\n");
|
fprintf(stderr, "Option ROM file is not specified\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
nb_option_roms++;
|
nb_option_roms++;
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_semihosting:
|
case QEMU_OPTION_semihosting:
|
||||||
semihosting_enabled = 1;
|
semihosting_enabled = 1;
|
||||||
semihosting_target = SEMIHOSTING_TARGET_AUTO;
|
semihosting_target = SEMIHOSTING_TARGET_AUTO;
|
||||||
|
|
Loading…
Reference in New Issue