summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2006-06-27 20:20:49 +0000
committerJason Wright <jason@cvs.openbsd.org>2006-06-27 20:20:49 +0000
commit4f44816c03c735d4503c17a41a17ab83a4632b75 (patch)
tree3e3744ea3601c4fb5c7ccdf91ef70836297dfae3 /sys/arch/sparc64/dev
parent572fe340a46e8bfdf74116581daf399f2550cb31 (diff)
don't bother printing "{se}bus: %s incomplete" for devices missing a reg
property. They're not interesting.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/ebus.c8
-rw-r--r--sys/arch/sparc64/dev/sbus.c9
2 files changed, 9 insertions, 8 deletions
diff --git a/sys/arch/sparc64/dev/ebus.c b/sys/arch/sparc64/dev/ebus.c
index 688ee466e96..4368d3067f9 100644
--- a/sys/arch/sparc64/dev/ebus.c
+++ b/sys/arch/sparc64/dev/ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ebus.c,v 1.13 2006/02/25 17:48:39 kettenis Exp $ */
+/* $OpenBSD: ebus.c,v 1.14 2006/06/27 20:20:48 jason Exp $ */
/* $NetBSD: ebus.c,v 1.24 2001/07/25 03:49:54 eeh Exp $ */
/*
@@ -205,10 +205,10 @@ ebus_attach(struct device *parent, struct device *self, void *aux)
*/
DPRINTF(EDB_CHILD, ("ebus node %08x, searching children...\n", node));
for (node = firstchild(node); node; node = nextsibling(node)) {
- char *name = getpropstring(node, "name");
-
if (ebus_setup_attach_args(sc, node, &eba) != 0) {
- printf("ebus_attach: %s: incomplete\n", name);
+ DPRINTF(EDB_CHILD,
+ ("ebus_attach: %s: incomplete\n",
+ getpropstring(node, "name")));
continue;
} else {
DPRINTF(EDB_CHILD, ("- found child `%s', attaching\n",
diff --git a/sys/arch/sparc64/dev/sbus.c b/sys/arch/sparc64/dev/sbus.c
index 4ac635726b6..3866dc7da20 100644
--- a/sys/arch/sparc64/dev/sbus.c
+++ b/sys/arch/sparc64/dev/sbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbus.c,v 1.24 2006/06/02 20:00:56 miod Exp $ */
+/* $OpenBSD: sbus.c,v 1.25 2006/06/27 20:20:48 jason Exp $ */
/* $NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp $ */
/*-
@@ -129,6 +129,7 @@
#ifdef DEBUG
#define SDB_DVMA 0x1
#define SDB_INTR 0x2
+#define SDB_CHILD 0x4
int sbus_debug = 0;
#define DPRINTF(l, s) do { if (sbus_debug & l) printf s; } while (0)
#else
@@ -417,11 +418,11 @@ sbus_attach_common(struct sbus_softc *sc, int node, int indirect)
*/
node0 = firstchild(node);
for (node = node0; node; node = nextsibling(node)) {
- char *name = getpropstring(node, "name");
-
if (sbus_setup_attach_args(sc, sbt, sc->sc_dmatag,
node, &sa) != 0) {
- printf("sbus_attach: %s: incomplete\n", name);
+ DPRINTF(SDB_CHILD,
+ ("sbus_attach: %s: incomplete\n",
+ getpropstring(node, "name")));
continue;
}
(void) config_found(&sc->sc_dev, (void *)&sa, sbus_print);