diff options
Diffstat (limited to 'hardinfo')
-rw-r--r-- | hardinfo/pci_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hardinfo/pci_util.c b/hardinfo/pci_util.c index 31870303..5f03d54a 100644 --- a/hardinfo/pci_util.c +++ b/hardinfo/pci_util.c @@ -280,6 +280,7 @@ static gboolean pci_get_device_sysfs(uint32_t dom, uint32_t bus, uint32_t dev, u s->bus = bus; s->device = dev; s->function = func; + s->slot_str = s->slot_str ? s->slot_str : pci_address_str(dom, bus, dev, func); if (! _sysfs_bus_pci_read_hex(dom, bus, dev, func, "class", &s->class) ) return FALSE; s->class >>= 8; /* TODO: find out why */ |