diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-02-27 19:25:18 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-02-27 19:25:18 +0000 |
commit | b4108a7ae2b31571b4f2f1c9d40c4610d2994824 (patch) | |
tree | 131cf2846f85ebacf821e73cf70c5a3f52358e51 /mdk-stage1 | |
parent | 3059c89d131d2b39d45ae07a76bcd632d099674f (diff) | |
download | drakx-b4108a7ae2b31571b4f2f1c9d40c4610d2994824.tar drakx-b4108a7ae2b31571b4f2f1c9d40c4610d2994824.tar.gz drakx-b4108a7ae2b31571b4f2f1c9d40c4610d2994824.tar.bz2 drakx-b4108a7ae2b31571b4f2f1c9d40c4610d2994824.tar.xz drakx-b4108a7ae2b31571b4f2f1c9d40c4610d2994824.zip |
also report when pcitable is "too old"
Diffstat (limited to 'mdk-stage1')
-rwxr-xr-x | mdk-stage1/pcmcia_/merge_from_pcitable | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mdk-stage1/pcmcia_/merge_from_pcitable b/mdk-stage1/pcmcia_/merge_from_pcitable index f91002517..7d980312d 100755 --- a/mdk-stage1/pcmcia_/merge_from_pcitable +++ b/mdk-stage1/pcmcia_/merge_from_pcitable @@ -26,8 +26,21 @@ foreach my $k (sort keys %$drivers) { push @pcitable, { vendor => $1, device => $2, driver => $v->[0], name => $v->[1], vd => "$1$2" }; } +print "Missing in `probe.c':\n"; foreach my $p (@pcitable) { next if $p->{driver} ne 'yenta_socket'; member($p->{vd}, map { $_->{vd} } @probes) or print " { 0x$p->{vendor}, 0x$p->{device}, \"..\", \"$p->{name}\" },\n"; } +print "\n"; + +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') { + print "0x$p->{vendor}\t0x$p->{device}\t\"yenta_socket\"\t\"$r[0]->{name}\"\n"; + $r[0]->{driver} ne 'unknown' and print STDERR "WARNING, driver was <$r[0]->{driver}>\n"; + } +} +print "\n"; |