+Mon Jun 21 22:11:10 1999 Martin Mares <mj@albireo.ucw.cz>
+
+ * lib/names.c (pci_lookup_name): When device ID lookup
+ fails, return hexadecimal device ID instead of vendor ID.
+ Well spotted by Axel Bodemann <Axel.Bodemann@ruhr-uni-bochum.de>,
+ I've just extended the fix to subsystem ID's.
+
Thu Jun 17 19:48:21 1999 Martin Mares <mj@albireo.ucw.cz>
* lspci.c (show_agp): Bug fix from Petr Vandrovec
/*
- * $Id: names.c,v 1.1 1999/01/22 21:05:33 mj Exp $
+ * $Id: names.c,v 1.2 1999/06/21 20:17:19 mj Exp $
*
* The PCI Library -- ID to Name Translation
*
if (n = nl_lookup(a, num, NL_DEVICE, arg1, arg2))
return n->name;
else
- res = snprintf(buf, size, "%04x", arg1);
+ res = snprintf(buf, size, "%04x", arg2);
break;
case PCI_LOOKUP_VENDOR | PCI_LOOKUP_DEVICE:
res = compound_name(a, num, buf, size, NL_VENDOR, arg1, arg2);
if (n = nl_lookup(a, num, NL_SUBSYSTEM_DEVICE, arg1, arg2))
return n->name;
else
- res = snprintf(buf, size, "%04x", arg1);
+ res = snprintf(buf, size, "%04x", arg2);
break;
case PCI_LOOKUP_VENDOR | PCI_LOOKUP_DEVICE | PCI_LOOKUP_SUBSYSTEM:
res = compound_name(a, num, buf, size, NL_SUBSYSTEM_VENDOR, arg1, arg2);