From 528412f5c72a6c839c039033594056a727e8a50e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 1 Mar 2002 12:10:52 +0000 Subject: add some better checking especially for titi. use "make check"!! --- convert/merge2pcitable.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'convert/merge2pcitable.pl') diff --git a/convert/merge2pcitable.pl b/convert/merge2pcitable.pl index 0a79130b..61fd6ffb 100755 --- a/convert/merge2pcitable.pl +++ b/convert/merge2pcitable.pl @@ -70,7 +70,11 @@ sub read_pcitable { # known errors in redhat's pcitable # these are pci to pci bridge $module = "yenta_socket" if $module =~ /i82365/; - my $id = join '', map { s/^0x//; $_ } $id1, $id2, $subid1, $subid2; + my $id = join '', map { + s/^0x//; + length == 4 or print STDERR "$f $line: bad number $_\n"; + $_; + } $id1, $id2, $subid1, $subid2; $drivers{$id} and print STDERR "$f $line: multiple entry for $id (skipping $module $text)\n"; $drivers{$id} ||= [ map &$rm_quote, $module, $text ]; } -- cgit v1.2.1