Message ID | 20211220155659.1343-1-pali@kernel.org (mailing list archive) |
---|---|
State | Handled Elsewhere |
Delegated to: | Bjorn Helgaas |
Headers | show |
Series | [pciutils] dump: Allow more leading zeros in dump line number | expand |
Hi! > U-Boot's "pci display.b" command prints pci config space dump with 8 digits > in line number. So allow up to the 8 digits in line number to easily parse > U-Boot's pci config space dumps. Thanks, applied. Martin
diff --git a/lib/dump.c b/lib/dump.c index 879c62449b27..c0f929133973 100644 --- a/lib/dump.c +++ b/lib/dump.c @@ -90,7 +90,9 @@ dump_init(struct pci_access *a) else if (!len) dev = NULL; else if (dev && - (dump_validate(buf, "##: ") || dump_validate(buf, "###: ")) && + (dump_validate(buf, "##: ") || dump_validate(buf, "###: ") || dump_validate(buf, "####: ") || + dump_validate(buf, "#####: ") || dump_validate(buf, "######: ") || + dump_validate(buf, "#######: ") || dump_validate(buf, "########: ")) && sscanf(buf, "%x: ", &i) == 1) { struct dump_data *dd = dev->aux;