X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdump.c;h=8b7320a05ba83feccb51569d46c0f4ff47fc8cff;hb=8a5d293fb78ca42a969df9e2b617456391636596;hp=879c62449b27b62cb2adf965f17242b9c9e336c0;hpb=8ae609eb2b205c0fb56812471606a86904d6f7af;p=pciutils.git diff --git a/lib/dump.c b/lib/dump.c index 879c624..8b7320a 100644 --- a/lib/dump.c +++ b/lib/dump.c @@ -3,7 +3,9 @@ * * Copyright (c) 1997--2008 Martin Mares * - * Can be freely distributed and used under the terms of the GNU GPL. + * Can be freely distributed and used under the terms of the GNU GPL v2+. + * + * SPDX-License-Identifier: GPL-2.0-or-later */ #include @@ -90,7 +92,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;