]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/names.c
More Windows stuff.
[pciutils.git] / lib / names.c
index 16335fc22b3e45895f567c757db951488235b114..01f141781dd0ba6ef6c5d2b9af0a829b6be4a5ef 100644 (file)
@@ -1,9 +1,7 @@
 /*
- *     $Id: names.c,v 1.8 2002/03/30 15:13:06 mj Exp $
- *
  *     The PCI Library -- ID to Name Translation
  *
- *     Copyright (c) 1997--2002 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ *     Copyright (c) 1997--2002 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
@@ -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))