From: Martin Mares Date: Thu, 20 Jan 2000 21:23:14 +0000 (+0000) Subject: Fixed a bug in fetching of cardbus bridge header extensions. X-Git-Tag: v3.0.0~241 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2715403f3b3185776d4bedd912e5524e0b78ba87;p=pciutils.git Fixed a bug in fetching of cardbus bridge header extensions. --- diff --git a/ChangeLog b/ChangeLog index c8a72c9..58f7c34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Thu Jan 20 11:08:32 2000 Martin Mares + * lspci.c (scan_device): Fixed bug in reading of cardbus extensions. + * lib/proc.c: pread/pwrite fixed again, this time on libc5 :( * lspci.c (format_agp_rate): Better formatting of AGP rates. diff --git a/lspci.c b/lspci.c index ba7b82e..77e0786 100644 --- a/lspci.c +++ b/lspci.c @@ -1,5 +1,5 @@ /* - * $Id: lspci.c,v 1.33 2000/01/20 21:15:41 mj Exp $ + * $Id: lspci.c,v 1.34 2000/01/20 21:23:14 mj Exp $ * * Linux PCI Utilities -- List All PCI Devices * @@ -101,7 +101,7 @@ scan_device(struct pci_dev *p) if (how_much < 128 && (d->config[PCI_HEADER_TYPE] & 0x7f) == PCI_HEADER_TYPE_CARDBUS) { /* For cardbus bridges, we need to fetch 64 bytes more to get the full standard header... */ - if (!pci_read_block(p, 0, d->config+64, 64)) + if (!pci_read_block(p, 64, d->config+64, 64)) die("Unable to read cardbus bridge extension data."); how_much = 128; }