summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-02-25 20:30:57 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-02-25 20:30:57 +0000
commit1dd28e774525af9295ebf2787f6f4fe9e3591c30 (patch)
tree0b9980adf46e97fa67a776000fbe2433ba1c817f /sys/dev
parentd3f36b4e655c45db6e8891b059a0d0d17e2877e7 (diff)
Stop cardbusprint() from printing the CIS data so that CardBus dmesg
entries look more like a PCI device as they're just another variant of PCI and this looks much nicer. ok deraadt@ kettenis@ mglocker@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cardbus/cardbus.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c
index 9df1fd3931b..e51991dbcf6 100644
--- a/sys/dev/cardbus/cardbus.c
+++ b/sys/dev/cardbus/cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cardbus.c,v 1.37 2007/09/19 21:54:22 martin Exp $ */
+/* $OpenBSD: cardbus.c,v 1.38 2008/02/25 20:30:56 brad Exp $ */
/* $NetBSD: cardbus.c,v 1.24 2000/04/02 19:11:37 mycroft Exp $ */
/*
@@ -582,35 +582,17 @@ cardbusprint(void *aux, const char *pnp)
{
struct cardbus_attach_args *ca = aux;
char devinfo[256];
- int i;
if (pnp) {
pci_devinfo(ca->ca_id, ca->ca_class, 1, devinfo,
sizeof(devinfo));
- for (i = 0; i < 4; i++) {
- if (ca->ca_cis.cis1_info[i] == NULL)
- break;
- if (i)
- printf(", ");
- printf("%s", ca->ca_cis.cis1_info[i]);
- }
- if (i)
- printf(" ");
- if (ca->ca_cis.manufacturer)
- printf("(manufacturer 0x%x, product 0x%x) ",
- ca->ca_cis.manufacturer, ca->ca_cis.product);
printf("%s at %s", devinfo, pnp);
}
printf(" dev %d function %d", ca->ca_device, ca->ca_function);
-
if (!pnp) {
- pci_devinfo(ca->ca_id, ca->ca_class, 1, devinfo,
+ pci_devinfo(ca->ca_id, ca->ca_class, 0, devinfo,
sizeof(devinfo));
- for (i = 0; i < 3 && ca->ca_cis.cis1_info[i]; i++)
- printf("%s%s", i ? ", " : " \"",
- ca->ca_cis.cis1_info[i]);
- if (ca->ca_cis.cis1_info[0])
- printf("\"");
+ printf(" %s", devinfo);
}
return (UNCONF);