Revision 3fe5c14e vl.c

b/vl.c
6150 6150
    for(i = 0; i < MAX_SERIAL_PORTS; i++) {
6151 6151
        const char *devname = serial_devices[i];
6152 6152
        if (devname && strcmp(devname, "none")) {
6153
            char label[32];
6154
            snprintf(label, sizeof(label), "serial%d", i);
6155 6153
            if (strstart(devname, "vc", 0))
6156 6154
                qemu_chr_printf(serial_hds[i], "serial%d console\r\n", i);
6157 6155
        }
......
6160 6158
    for(i = 0; i < MAX_PARALLEL_PORTS; i++) {
6161 6159
        const char *devname = parallel_devices[i];
6162 6160
        if (devname && strcmp(devname, "none")) {
6163
            char label[32];
6164
            snprintf(label, sizeof(label), "parallel%d", i);
6165 6161
            if (strstart(devname, "vc", 0))
6166 6162
                qemu_chr_printf(parallel_hds[i], "parallel%d console\r\n", i);
6167 6163
        }
......
6170 6166
    for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
6171 6167
        const char *devname = virtio_consoles[i];
6172 6168
        if (virtcon_hds[i] && devname) {
6173
            char label[32];
6174
            snprintf(label, sizeof(label), "virtcon%d", i);
6175 6169
            if (strstart(devname, "vc", 0))
6176 6170
                qemu_chr_printf(virtcon_hds[i], "virtio console%d\r\n", i);
6177 6171
        }

Also available in: Unified diff