mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-05 22:41:14 +00:00
fix typo - s/parallel/parport/
This commit is contained in:
parent
4c5dbaf6ab
commit
32e698051f
@ -2353,7 +2353,7 @@ sub config_to_command {
|
|||||||
for (my $i = 0; $i < $MAX_PARALLEL_PORTS; $i++) {
|
for (my $i = 0; $i < $MAX_PARALLEL_PORTS; $i++) {
|
||||||
if (my $path = $conf->{"parallel$i"}) {
|
if (my $path = $conf->{"parallel$i"}) {
|
||||||
die "no such parallel device\n" if ! -c $path;
|
die "no such parallel device\n" if ! -c $path;
|
||||||
my $devtype = $path =~ m!^/dev/usb/lp! ? 'tty' : 'parallel';
|
my $devtype = $path =~ m!^/dev/usb/lp! ? 'tty' : 'parport';
|
||||||
push @$devices, '-chardev', "$devtype,id=parallel$i,path=$path";
|
push @$devices, '-chardev', "$devtype,id=parallel$i,path=$path";
|
||||||
push @$devices, '-device', "isa-parallel,chardev=parallel$i";
|
push @$devices, '-device', "isa-parallel,chardev=parallel$i";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user