summaryrefslogtreecommitdiffstats
path: root/convert/merge2pcitable.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-11-02 10:21:12 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-11-02 10:21:12 +0000
commit2dfac8d1af4e1bc07893b0696adfdb0501c9b97d (patch)
tree0ed4c2b32618eb2e57e9154e4e69a56fbeedb0b6 /convert/merge2pcitable.pl
parente2537ebea05d65b2348f7a4c83ea1eedd7ffa1ce (diff)
downloadldetect-lst-2dfac8d1af4e1bc07893b0696adfdb0501c9b97d.tar
ldetect-lst-2dfac8d1af4e1bc07893b0696adfdb0501c9b97d.tar.gz
ldetect-lst-2dfac8d1af4e1bc07893b0696adfdb0501c9b97d.tar.bz2
ldetect-lst-2dfac8d1af4e1bc07893b0696adfdb0501c9b97d.tar.xz
ldetect-lst-2dfac8d1af4e1bc07893b0696adfdb0501c9b97d.zip
fix checking subids
Diffstat (limited to 'convert/merge2pcitable.pl')
-rwxr-xr-xconvert/merge2pcitable.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert/merge2pcitable.pl b/convert/merge2pcitable.pl
index f7c175f6..36d07962 100755
--- a/convert/merge2pcitable.pl
+++ b/convert/merge2pcitable.pl
@@ -107,7 +107,7 @@ sub read_kernel_pcimap {
next if /^#/ || /^\s*$/;
my ($module, $id1, $id2, $subid1, $subid2) = split;
next if $module eq 'pci';
- ($subid1, $subid2) = ("ffff", "ffff") if $subid1 == 0 && $subid2 == 0;
+ ($subid1, $subid2) = ("ffff", "ffff") if hex($subid1) == 0 && hex($subid2) == 0;
$drivers{join '', map { /(....)$/ } $id1, $id2, $subid1, $subid2} = [ $module, '' ];
}
\%drivers;