summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-09 21:34:06 +0000
committerimp <imp@FreeBSD.org>2002-02-09 21:34:06 +0000
commitd22d828b7d6b0f2769de7a8e49aac6ae1a637ffd (patch)
treef2b1ff0296bce01995ac79d8b92b3d38df0f064f
parent79276058c84c47e640e3036a9d0c782db8d0d83d (diff)
downloadFreeBSD-src-d22d828b7d6b0f2769de7a8e49aac6ae1a637ffd.zip
FreeBSD-src-d22d828b7d6b0f2769de7a8e49aac6ae1a637ffd.tar.gz
Boot verbosify printing the CIS, since we don't normally need to do that.
-rw-r--r--sys/dev/pccard/pccard.c8
-rw-r--r--sys/dev/pccard/pccard_cis_quirks.c2
2 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c
index 55ddde4..e4a2fb9 100644
--- a/sys/dev/pccard/pccard.c
+++ b/sys/dev/pccard/pccard.c
@@ -66,12 +66,6 @@ int pccard_debug = 0;
#define DEVPRVERBOSE(arg) if (bootverbose) device_printf arg
#endif
-#ifdef PCCARDVERBOSE
-int pccard_verbose = 1;
-#else
-int pccard_verbose = 0;
-#endif
-
static int pccard_ccr_read(struct pccard_function *pf, int ccr);
static void pccard_ccr_write(struct pccard_function *pf, int ccr, int val);
static int pccard_attach_card(device_t dev);
@@ -168,7 +162,7 @@ pccard_attach_card(device_t dev)
return (1);
}
- if (1)
+ if (bootverbose || pccard_debug)
pccard_print_cis(dev);
DEVPRINTF((dev, "functions scanning\n"));
diff --git a/sys/dev/pccard/pccard_cis_quirks.c b/sys/dev/pccard/pccard_cis_quirks.c
index 83abcf6..e1e8f38 100644
--- a/sys/dev/pccard/pccard_cis_quirks.c
+++ b/sys/dev/pccard/pccard_cis_quirks.c
@@ -231,7 +231,7 @@ void pccard_check_cis_quirks(device_t dev)
(strcmp(sc->card.cis1_info[1],
pccard_cis_quirks[i].cis1_info[1]) == 0)))) {
if (!wiped) {
- if (pccard_verbose) {
+ if (bootverbose) {
device_printf(dev, "using CIS quirks for ");
for (j = 0; j < 4; j++) {
if (sc->card.cis1_info[j] == NULL)
OpenPOWER on IntegriCloud