summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-08-21 15:52:38 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-08-21 15:52:38 +0000
commitef12a722d6674f1b803cf0270684dc7467842d77 (patch)
tree91d63d21b3e0f7d6bdfcffc301d7d9bb5391c3b3
parent749f610e8719c5c1c8d2a63dab1647cb1024b22d (diff)
downloaddrakx-ef12a722d6674f1b803cf0270684dc7467842d77.tar
drakx-ef12a722d6674f1b803cf0270684dc7467842d77.tar.gz
drakx-ef12a722d6674f1b803cf0270684dc7467842d77.tar.bz2
drakx-ef12a722d6674f1b803cf0270684dc7467842d77.tar.xz
drakx-ef12a722d6674f1b803cf0270684dc7467842d77.zip
also display probe.c entries that are completely missing from pcitable
-rwxr-xr-xmdk-stage1/pcmcia_/merge_from_pcitable6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/pcmcia_/merge_from_pcitable b/mdk-stage1/pcmcia_/merge_from_pcitable
index 74fc56f31..27cda239b 100755
--- a/mdk-stage1/pcmcia_/merge_from_pcitable
+++ b/mdk-stage1/pcmcia_/merge_from_pcitable
@@ -41,9 +41,9 @@ print "Missing in pcitable:\n";
foreach my $p (@probes) {
my @r = grep { $_->{vd} eq $p->{vd} } @pcitable;
@r > 1 and die "duplicate entry in pcitable <$p->{vd}>\n";
- if (@r && $r[0]->{driver} ne 'yenta_socket') {
- push @res, "0x$p->{vendor}\t0x$p->{device}\t\"yenta_socket\"\t\"$r[0]->{name}\"\n";
- $r[0]->{driver} ne 'unknown' and print STDERR "WARNING, driver for <$p->{vd}> was <$r[0]->{driver}>\n";
+ if (!@r || @r && $r[0]->{driver} ne 'yenta_socket') {
+ push @res, "0x$p->{vendor}\t0x$p->{device}\t\"yenta_socket\"\t\"" . (@r ? $r[0]->{name} : '(COMPLETELY MISSING)') . "\"\n";
+ @r and $r[0]->{driver} ne 'unknown' and print STDERR "WARNING, driver for <$p->{vd}> was <$r[0]->{driver}>\n";
}
}
print sort @res;