From: Martin Mares Date: Fri, 5 May 2006 12:17:49 +0000 (+0200) Subject: Gluing CVS and TLA history: A bug fix which wasn't tracked. X-Git-Tag: v3.0.0~165 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ab90adc2a210b9030d4fe9b6af195feff127a7ba;p=pciutils.git Gluing CVS and TLA history: A bug fix which wasn't tracked. --- diff --git a/lib/names.c b/lib/names.c index 94225f5..f373125 100644 --- a/lib/names.c +++ b/lib/names.c @@ -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))