git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-59
2004-08-13 Martin Mares <mj@ucw.cz>
+ * lib/sysfs.c (sysfs_get_resources): We have 7 resources, not 6.
+
* lspci.c (show_rom): Use the same logic for printing disabled
or unassigned ROM's as we do in show_bases() for the other BAR's.
file = fopen(namebuf, "r");
if (!file)
a->error("Cannot open %s: %s", namebuf, strerror(errno));
- for (i = 0; i < 8; i++)
+ for (i = 0; i < 7; i++)
{
unsigned long long start, end, size;
if (!fgets(buf, sizeof(buf), file))
size = end - start + 1;
else
size = 0;
- if (i < 7)
+ if (i < 6)
{
d->base_addr[i] = start;
d->size[i] = size;