aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2020-12-06 19:29:14 +0100
committerMartin Mares <mj@ucw.cz>2020-12-06 19:29:14 +0100
commit8ae609eb2b205c0fb56812471606a86904d6f7af (patch)
tree05fffc9125b0510dd7b2ba4f4cb5fb58dc4acc55
parent4b7283cc408a79ee829fa01f204358d6329dd063 (diff)
parentac459e2698a27b0efc2d11b34aca4335d5efc965 (diff)
downloadpciutils-8ae609eb2b205c0fb56812471606a86904d6f7af.tar.gz
Merge branch 'master' of https://github.com/rohit-mundra/pciutils
-rw-r--r--lib/dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dump.c b/lib/dump.c
index 59cf7ed..879c624 100644
--- a/lib/dump.c
+++ b/lib/dump.c
@@ -80,7 +80,8 @@ dump_init(struct pci_access *a)
len = z - buf + 1;
mn = 0;
if (dump_validate(buf, "##:##.# ") && sscanf(buf, "%x:%x.%d", &bn, &dn, &fn) == 3 ||
- dump_validate(buf, "####:##:##.# ") && sscanf(buf, "%x:%x:%x.%d", &mn, &bn, &dn, &fn) == 4)
+ dump_validate(buf, "####:##:##.# ") && sscanf(buf, "%x:%x:%x.%d", &mn, &bn, &dn, &fn) == 4 ||
+ dump_validate(buf, "#####:##:##.# ") && sscanf(buf, "%x:%x:%x.%d", &mn, &bn, &dn, &fn) == 4)
{
dev = pci_get_dev(a, mn, bn, dn, fn);
dump_alloc_data(dev, 256);