diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-03-27 08:20:44 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-03-27 08:20:44 +0000 |
commit | b17700648d13e502d433cae26157c04c755ccdec (patch) | |
tree | 5ff31960335348b2a22dc8a659675cabe6f271ff /sys/alpha/tlsb | |
parent | db3c462cd171018e1671c0d731dacaa5962e2cc1 (diff) | |
download | FreeBSD-src-b17700648d13e502d433cae26157c04c755ccdec.zip FreeBSD-src-b17700648d13e502d433cae26157c04c755ccdec.tar.gz |
complain when you do not create a TLSB node
Diffstat (limited to 'sys/alpha/tlsb')
-rw-r--r-- | sys/alpha/tlsb/tlsb.c | 4 |
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)); } |