if not PCIVERBOSE, don't say that vendor/product is "unknown," just say
what it is.
This commit is contained in:
parent
1c5d7babe5
commit
c7241fb1ce
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: pci_subr.c,v 1.14 1996/02/28 01:44:43 cgd Exp $ */
|
/* $NetBSD: pci_subr.c,v 1.15 1996/03/02 01:07:47 cgd Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 1996 Christopher G. Demetriou. All rights reserved.
|
* Copyright (c) 1995, 1996 Christopher G. Demetriou. All rights reserved.
|
||||||
|
@ -162,6 +162,9 @@ pci_devinfo(id_reg, class_reg, showclass, cp)
|
||||||
struct pci_class *classp, *subclassp;
|
struct pci_class *classp, *subclassp;
|
||||||
#ifdef PCIVERBOSE
|
#ifdef PCIVERBOSE
|
||||||
struct pci_knowndev *kdp;
|
struct pci_knowndev *kdp;
|
||||||
|
const char *unmatched = "unknown ";
|
||||||
|
#else
|
||||||
|
const char *unmatched = "";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
vendor = PCI_VENDOR(id_reg);
|
vendor = PCI_VENDOR(id_reg);
|
||||||
|
@ -206,8 +209,8 @@ pci_devinfo(id_reg, class_reg, showclass, cp)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vendor_namep == NULL)
|
if (vendor_namep == NULL)
|
||||||
cp += sprintf(cp, "unknown vendor/product: 0x%04x/0x%04x",
|
cp += sprintf(cp, "%svendor/product: 0x%04x/0x%04x",
|
||||||
vendor, product);
|
unmatched, vendor, product);
|
||||||
else if (product_namep != NULL)
|
else if (product_namep != NULL)
|
||||||
cp += sprintf(cp, "%s %s", vendor_namep, product_namep);
|
cp += sprintf(cp, "%s %s", vendor_namep, product_namep);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue