]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/names.c
More Windows stuff.
[pciutils.git] / lib / names.c
index 94225f58efeaae308ac526c5c6e3a50cff24560d..01f141781dd0ba6ef6c5d2b9af0a829b6be4a5ef 100644 (file)
@@ -1,6 +1,4 @@
 /*
- *     $Id: names.c,v 1.9 2002/03/30 15:39:25 mj Exp $
- *
  *     The PCI Library -- ID to Name Translation
  *
  *     Copyright (c) 1997--2002 Martin Mares <mj@ucw.cz>
@@ -275,7 +273,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))