summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-01-20 19:05:06 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-01-20 19:05:06 +0000
commitc2733d0e03361225d468eb85e142e1f31053900d (patch)
tree191a43fd5dda966a70a45efd57cd1de380627292 /sys/dev
parente4232757b30346a182214fb65da8a76f2edb7b24 (diff)
Provide a way to debug probes. set autoconf_verbose via DDB, or
option AUTOCONF_VERBOSE=1 in your kernel config.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/isa.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c
index c11c6744fb2..2a3e514e0fc 100644
--- a/sys/dev/isa/isa.c
+++ b/sys/dev/isa/isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa.c,v 1.28 1998/01/20 18:40:28 niklas Exp $ */
+/* $OpenBSD: isa.c,v 1.29 1998/01/20 19:05:05 niklas Exp $ */
/* $NetBSD: isa.c,v 1.85 1996/05/14 00:31:04 thorpej Exp $ */
/*
@@ -79,8 +79,6 @@
int isamatch __P((struct device *, void *, void *));
void isaattach __P((struct device *, struct device *, void *));
-extern int autoconf_verbose;
-
struct cfattach isa_ca = {
sizeof(struct isa_softc), isamatch, isaattach
};
@@ -203,14 +201,7 @@ isascan(parent, match)
if (cf->cf_fstate == FSTATE_STAR) {
struct isa_attach_args ia2 = ia;
- if (autoconf_verbose)
- printf(">>> probing for %s*\n",
- cf->cf_driver->cd_name);
while ((*cf->cf_attach->ca_match)(parent, dev, &ia2) > 0) {
- if (autoconf_verbose)
- printf(">>> probe for %s* clone into %s%d\n",
- cf->cf_driver->cd_name,
- cf->cf_driver->cd_name, cf->cf_unit);
if (ia2.ia_iosize == 0x666) {
printf("%s: iosize not repaired by driver\n",
sc->sc_dev.dv_xname);
@@ -225,30 +216,19 @@ isascan(parent, match)
ISA_DRQ_ALLOC((struct device *)sc, ia.ia_drq);
#endif /* NISAMDA > 0 */
}
- if (autoconf_verbose)
- printf(">>> probing for %s* finished\n",
- cf->cf_driver->cd_name);
free(dev, M_DEVBUF);
return;
}
- if (autoconf_verbose)
- printf(">>> probing for %s%d\n", cf->cf_driver->cd_name,
- cf->cf_unit);
if ((*cf->cf_attach->ca_match)(parent, dev, &ia) > 0) {
- printf(">>> probing for %s%d succeeded\n",
- cf->cf_driver->cd_name, cf->cf_unit);
config_attach(parent, dev, &ia, isaprint);
#if NISADMA > 0
if (ia.ia_drq != DRQUNK)
ISA_DRQ_ALLOC((struct device *)sc, ia.ia_drq);
#endif /* NISAMDA > 0 */
- } else {
- printf(">>> probing for %s%d failed\n",
- cf->cf_driver->cd_name, cf->cf_unit);
+ } else
free(dev, M_DEVBUF);
- }
}
char *