From b17700648d13e502d433cae26157c04c755ccdec Mon Sep 17 00:00:00 2001 From: mjacob Date: Mon, 27 Mar 2000 08:20:44 +0000 Subject: complain when you do not create a TLSB node --- sys/alpha/tlsb/tlsb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/alpha') 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)); } -- cgit v1.1