From 4cf46078d16a135615a9ef6c8cdbade840edc36a Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Mon, 27 Mar 2000 08:20:44 +0000 Subject: [PATCH] complain when you do not create a TLSB node --- sys/alpha/tlsb/tlsb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/alpha/tlsb/tlsb.c b/sys/alpha/tlsb/tlsb.c index efe734622a98..c8fd6fa2b3b5 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)); }