summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-03-27 08:20:44 +0000
committermjacob <mjacob@FreeBSD.org>2000-03-27 08:20:44 +0000
commitb17700648d13e502d433cae26157c04c755ccdec (patch)
tree5ff31960335348b2a22dc8a659675cabe6f271ff /sys/alpha
parentdb3c462cd171018e1671c0d731dacaa5962e2cc1 (diff)
downloadFreeBSD-src-b17700648d13e502d433cae26157c04c755ccdec.zip
FreeBSD-src-b17700648d13e502d433cae26157c04c755ccdec.tar.gz
complain when you do not create a TLSB node
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/tlsb/tlsb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/alpha/tlsb/tlsb.c b/sys/alpha/tlsb/tlsb.c
index efe7346..c8fd6fa 100644
--- a/sys/alpha/tlsb/tlsb.c
+++ b/sys/alpha/tlsb/tlsb.c
@@ -280,13 +280,15 @@ tlsb_add_child(struct tlsb_softc *tlsb, struct tlsb_device *tdev)
cpuproto += 2;
break;
default:
+ printf("tlsb_add_child: unknown TLSB node type 0x%x\n", dtype);
return;
}
for (i = 0; i < units; i++, unit++) {
cd = device_add_child_ordered(tlsb->tlsb_dev, ordr, dn, unit);
- if (cd == NULL)
+ if (cd == NULL) {
return;
+ }
device_set_ivars(cd, tdev);
device_set_desc(cd, tlsb_node_type_str(dtype));
}
OpenPOWER on IntegriCloud