diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-11-21 17:01:40 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-11-21 17:01:40 +0000 |
commit | 3ec987d90f2bc83d0a0866b6c29cc15bd8cc1e98 (patch) | |
tree | 4619a694d4f4eca8b5d599683651a5d88b010b2d /sys | |
parent | c53b2a7f20a43b28361bc4013fba89068cb2d217 (diff) |
Better printf for unknown product id.
ok todd@ tom@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/pci_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci_subr.c b/sys/dev/pci/pci_subr.c index c2d85dc0cb6..a77a56b17ab 100644 --- a/sys/dev/pci/pci_subr.c +++ b/sys/dev/pci/pci_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_subr.c,v 1.16 2004/10/23 16:06:07 brad Exp $ */ +/* $OpenBSD: pci_subr.c,v 1.17 2004/11/21 17:01:39 grange Exp $ */ /* $NetBSD: pci_subr.c,v 1.19 1996/10/13 01:38:29 christos Exp $ */ /* @@ -379,7 +379,7 @@ pci_devinfo(pcireg_t id_reg, pcireg_t class_reg, int showclass, char *cp, else if (product_namep != NULL) snprintf(cp, cp_max, "\"%s %s\"", vendor_namep, product_namep); else - snprintf(cp, cp_max, "vendor \"%s\", unknown product 0x%x", + snprintf(cp, cp_max, "vendor \"%s\", unknown product 0x%04x", vendor_namep, product); if (showclass && product_namep == NULL) { strlcat(cp, " (", cp_max); |