Revision 55338f1d
b/vl.c | ||
---|---|---|
5688 | 5688 |
|
5689 | 5689 |
for(i = 0; i < MAX_SERIAL_PORTS; i++) { |
5690 | 5690 |
const char *devname = serial_devices[i]; |
5691 |
char label[32]; |
|
5692 |
snprintf(label, sizeof(label), "serial%d", i); |
|
5691 | 5693 |
if (devname && strcmp(devname, "none")) { |
5692 |
char label[32]; |
|
5693 |
snprintf(label, sizeof(label), "serial%d", i); |
|
5694 | 5694 |
serial_hds[i] = qemu_chr_open(label, devname, NULL); |
5695 |
if (!serial_hds[i]) { |
|
5696 |
fprintf(stderr, "qemu: could not open serial device '%s'\n", |
|
5697 |
devname); |
|
5698 |
exit(1); |
|
5699 |
} |
|
5695 |
} else { |
|
5696 |
serial_hds[i] = qemu_chr_open(label, "null", NULL); |
|
5697 |
} |
|
5698 |
if (!serial_hds[i]) { |
|
5699 |
fprintf(stderr, "qemu: could not open serial device '%s'\n", |
|
5700 |
devname); |
|
5701 |
exit(1); |
|
5700 | 5702 |
} |
5701 | 5703 |
} |
5702 | 5704 |
|
Also available in: Unified diff