]> mj.ucw.cz Git - pciutils.git/commitdiff
Gluing CVS and TLA history: A bug fix which wasn't tracked.
authorMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:17:49 +0000 (14:17 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:17:49 +0000 (14:17 +0200)
lib/names.c

index 94225f58efeaae308ac526c5c6e3a50cff24560d..f373125f7a331801f78303b02ebe5ecad3e17c9f 100644 (file)
@@ -275,7 +275,7 @@ pci_lookup_name(struct pci_access *a, char *buf, int size, int flags, u32 arg1,
       if (n = nl_lookup(a, num, NL_VENDOR, arg3, 0, 0, 0))
        return n->name;
       else
-       res = snprintf(buf, size, "%04x", arg2);
+       res = snprintf(buf, size, "%04x", arg3);
       break;
     case PCI_LOOKUP_DEVICE | PCI_LOOKUP_SUBSYSTEM:
       if (n = nl_lookup(a, num, NL_SUBSYSTEM, arg1, arg2, arg3, arg4))