summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-08 17:25:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-08 17:25:07 +0000
commit20a16460fc3dadc3670f74649d9efd23d4e1672f (patch)
tree253795acca41e7bc22f707e9f28e6558be0adacd /sys/arch/mac68k/dev
parente27fb7cead158776491996ec81b38e8d51dcbd33 (diff)
Display unhandled adb devices as "whatever at adb0 addr X" like all buses do;
while there, make the detailed descriptions dependent on ADBVERBOSE (enabled in GENERIC) instead of DIAGNOSTIC.
Diffstat (limited to 'sys/arch/mac68k/dev')
-rw-r--r--sys/arch/mac68k/dev/adb.c19
-rw-r--r--sys/arch/mac68k/dev/akbd.c3
-rw-r--r--sys/arch/mac68k/dev/ams.c9
3 files changed, 16 insertions, 15 deletions
diff --git a/sys/arch/mac68k/dev/adb.c b/sys/arch/mac68k/dev/adb.c
index 50531807ce1..320b6362dec 100644
--- a/sys/arch/mac68k/dev/adb.c
+++ b/sys/arch/mac68k/dev/adb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adb.c,v 1.15 2006/01/04 20:39:04 miod Exp $ */
+/* $OpenBSD: adb.c,v 1.16 2006/01/08 17:25:05 miod Exp $ */
/* $NetBSD: adb.c,v 1.47 2005/06/16 22:43:36 jmc Exp $ */
/*
@@ -177,9 +177,8 @@ adbprint(void *args, const char *name)
rv = UNSUPP; /* most ADB device types are unsupported */
/* print out what kind of ADB device we have found */
- printf("%s addr %d: ", name, aa_args->adbaddr);
switch(aa_args->origaddr) {
-#ifdef DIAGNOSTIC
+#ifdef ADBVERBOSE
case ADBADDR_SECURE:
printf("security dongle (%d)",
aa_args->handler_id);
@@ -195,7 +194,7 @@ adbprint(void *args, const char *name)
aa_args->handler_id);
rv = UNCONF;
break;
-#ifdef DIAGNOSTIC
+#ifdef ADBVERBOSE
case ADBADDR_ABS:
switch (aa_args->handler_id) {
case ADB_ARTPAD:
@@ -223,13 +222,15 @@ adbprint(void *args, const char *name)
}
break;
default:
- printf("unknown type device, (handler %d)",
- aa_args->handler_id);
+ printf("unknown type %d device, (handler %d)",
+ aa_args->origaddr, aa_args->handler_id);
break;
-#endif /* DIAGNOSTIC */
+#endif /* ADBVERBOSE */
}
- } else /* a device matched and was configured */
- printf(" addr %d: ", aa_args->adbaddr);
+ printf(" at %s", name);
+ }
+
+ printf(" addr %d", aa_args->adbaddr);
return (rv);
}
diff --git a/sys/arch/mac68k/dev/akbd.c b/sys/arch/mac68k/dev/akbd.c
index dbe3ccd8951..a79ad6434b8 100644
--- a/sys/arch/mac68k/dev/akbd.c
+++ b/sys/arch/mac68k/dev/akbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: akbd.c,v 1.2 2006/01/08 16:35:25 miod Exp $ */
+/* $OpenBSD: akbd.c,v 1.3 2006/01/08 17:25:05 miod Exp $ */
/* $NetBSD: akbd.c,v 1.17 2005/01/15 16:00:59 chs Exp $ */
/*
@@ -136,6 +136,7 @@ akbdattach(struct device *parent, struct device *self, void *aux)
adbinfo.siServiceRtPtr = (Ptr)adb_kbd_asmcomplete;
adbinfo.siDataAreaAddr = (caddr_t)sc;
+ printf(": ");
switch (sc->handler_id) {
case ADB_STDKBD:
printf("standard keyboard\n");
diff --git a/sys/arch/mac68k/dev/ams.c b/sys/arch/mac68k/dev/ams.c
index 874a601d0cf..c4cc4b1b0a6 100644
--- a/sys/arch/mac68k/dev/ams.c
+++ b/sys/arch/mac68k/dev/ams.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ams.c,v 1.1 2006/01/04 20:39:04 miod Exp $ */
+/* $OpenBSD: ams.c,v 1.2 2006/01/08 17:25:05 miod Exp $ */
/* $NetBSD: ams.c,v 1.11 2000/12/19 03:13:40 tsubai Exp $ */
/*
@@ -112,13 +112,12 @@ amsattach(struct device *parent, struct device *self, void *aux)
ems_init(sc);
/* print out the type of mouse we have */
+ printf(": ");
switch (sc->handler_id) {
- case ADBMS_100DPI:
- printf("%d-button, %d dpi mouse\n", sc->sc_buttons,
- (int)(sc->sc_res));
- break;
case ADBMS_200DPI:
sc->sc_res = 200;
+ /* FALLTHROUGH */
+ case ADBMS_100DPI:
printf("%d-button, %d dpi mouse\n", sc->sc_buttons,
(int)(sc->sc_res));
break;