summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruwe <uwe@openbsd.org>2006-06-03 03:01:49 +0000
committeruwe <uwe@openbsd.org>2006-06-03 03:01:49 +0000
commitb7dfdf11c1f261c18f02241330017f702a356f01 (patch)
tree6d86f07c80199b36af5a279ebc2e122036eee746
parentmake detachable, inspired by netbsd (diff)
downloadwireguard-openbsd-b7dfdf11c1f261c18f02241330017f702a356f01.tar.xz
wireguard-openbsd-b7dfdf11c1f261c18f02241330017f702a356f01.zip
- only call config_found for function number > 0
- always display the product information in sdmmc_print()
-rw-r--r--sys/dev/sdmmc/sdmmc_io.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/sdmmc_io.c b/sys/dev/sdmmc/sdmmc_io.c
index f811eb0e7e3..6fdc42c73cb 100644
--- a/sys/dev/sdmmc/sdmmc_io.c
+++ b/sys/dev/sdmmc/sdmmc_io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc_io.c,v 1.3 2006/06/01 21:53:41 uwe Exp $ */
+/* $OpenBSD: sdmmc_io.c,v 1.4 2006/06/03 03:01:49 uwe Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -204,6 +204,9 @@ sdmmc_io_attach(struct sdmmc_softc *sc)
struct sdmmc_attach_args saa;
SIMPLEQ_FOREACH(sf, &sc->sf_head, sf_list) {
+ if (sf->number < 1)
+ continue;
+
bzero(&saa, sizeof saa);
saa.sf = sf;
@@ -256,6 +259,13 @@ sdmmc_print(void *aux, const char *pnp)
printf("%sat %s", i ? " " : "", pnp);
}
printf(" function %d", sf->number);
+
+ if (!pnp) {
+ for (i = 0; i < 3 && cis->cis1_info[i]; i++)
+ printf("%s%s", i ? ", " : " \"", cis->cis1_info[i]);
+ if (i != 0)
+ printf("\"");
+ }
return UNCONF;
}