Revert "Open chr device for all serial ports"
This reverts commit 55338f1dd4648d78ee130d83a92f1059ff1f3887.
This commit is contained in:
		
							parent
							
								
									5c637a20e9
								
							
						
					
					
						commit
						324a802185
					
				
							
								
								
									
										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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user