+2002-03-24 Martin Mares <mj@ucw.cz>
+
+ * lib/filter.c (pci_filter_parse_slot): Allow bus 0xff, slot 0x1f and
+ function 7.
+
+ * lib/names.c (pci_lookup_name): When printing unknown subsystem vendor
+ or device hexadecimally, don't confuse it with chip vendor/device ID.
+ First reported by Marc Boucher <marc@mbsi.ca>.
+
2001-11-04 Martin Mares <mj@ucw.cz>
* pci.ids: Synced with the PCI ID Repository at SourceForge
/*
- * $Id: names.c,v 1.6 2000/04/29 12:56:23 mj Exp $
+ * $Id: names.c,v 1.7 2002/03/24 12:14:40 mj Exp $
*
* The PCI Library -- ID to Name Translation
*
- * Copyright (c) 1997--2000 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ * Copyright (c) 1997--2002 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
if (n = nl_lookup(a, num, NL_VENDOR, arg3, 0, 0, 0))
return n->name;
else
- res = snprintf(buf, size, "%04x", arg1);
+ res = snprintf(buf, size, "%04x", arg2);
break;
case PCI_LOOKUP_DEVICE | PCI_LOOKUP_SUBSYSTEM:
if (n = nl_lookup(a, num, NL_SUBSYSTEM, arg1, arg2, arg3, arg4))
else if (arg1 == arg3 && arg2 == arg4 && (n = nl_lookup(a, num, NL_DEVICE, arg1, arg2, 0, 0)))
return n->name;
else
- res = snprintf(buf, size, "%04x", arg2);
+ res = snprintf(buf, size, "%04x", arg4);
break;
case PCI_LOOKUP_VENDOR | PCI_LOOKUP_DEVICE | PCI_LOOKUP_SUBSYSTEM:
if (!num)