diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-20 04:06:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-20 04:06:28 +0000 |
commit | 408e99b4619a39b80f002bec495d959b46a03518 (patch) | |
tree | 7a11d25b7dddd501156c47e7b71d622469c4b7fa /lib/dump.c | |
parent | Adding upstream version 1:3.12.0. (diff) | |
download | pciutils-upstream.tar.xz pciutils-upstream.zip |
Adding upstream version 1:3.13.0.upstream/1%3.13.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/dump.c')
-rw-r--r-- | lib/dump.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -83,7 +83,8 @@ dump_init(struct pci_access *a) 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 || + 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); |