Revert "Open chr device for all serial ports"

This reverts commit 55338f1dd4.
This commit is contained in:
Aurelien Jarno 2009-09-14 23:49:43 +02:00
parent 5c637a20e9
commit 324a802185

6
vl.c
View file

@ -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];