mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Revert "Open chr device for all serial ports"
This reverts commit 55338f1dd4
.
This commit is contained in:
parent
5c637a20e9
commit
324a802185
1 changed files with 7 additions and 9 deletions
6
vl.c
6
vl.c
|
@ -5688,19 +5688,17 @@ int main(int argc, char **argv, char **envp)
|
||||||
|
|
||||||
for(i = 0; i < MAX_SERIAL_PORTS; i++) {
|
for(i = 0; i < MAX_SERIAL_PORTS; i++) {
|
||||||
const char *devname = serial_devices[i];
|
const char *devname = serial_devices[i];
|
||||||
|
if (devname && strcmp(devname, "none")) {
|
||||||
char label[32];
|
char label[32];
|
||||||
snprintf(label, sizeof(label), "serial%d", i);
|
snprintf(label, sizeof(label), "serial%d", i);
|
||||||
if (devname && strcmp(devname, "none")) {
|
|
||||||
serial_hds[i] = qemu_chr_open(label, devname, NULL);
|
serial_hds[i] = qemu_chr_open(label, devname, NULL);
|
||||||
} else {
|
|
||||||
serial_hds[i] = qemu_chr_open(label, "null", NULL);
|
|
||||||
}
|
|
||||||
if (!serial_hds[i]) {
|
if (!serial_hds[i]) {
|
||||||
fprintf(stderr, "qemu: could not open serial device '%s'\n",
|
fprintf(stderr, "qemu: could not open serial device '%s'\n",
|
||||||
devname);
|
devname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for(i = 0; i < MAX_PARALLEL_PORTS; i++) {
|
for(i = 0; i < MAX_PARALLEL_PORTS; i++) {
|
||||||
const char *devname = parallel_devices[i];
|
const char *devname = parallel_devices[i];
|
||||||
|
|
Loading…
Reference in a new issue