svn commit: r209904 - head/sys/dev/fdt

Rafal Jaworowski raj at FreeBSD.org
Sun Jul 11 20:31:00 UTC 2010


Author: raj
Date: Sun Jul 11 20:30:59 2010
New Revision: 209904
URL: http://svn.freebsd.org/changeset/base/209904

Log:
  Let simplebus(4) diagnostics be a bit more descriptive.

Modified:
  head/sys/dev/fdt/simplebus.c

Modified: head/sys/dev/fdt/simplebus.c
==============================================================================
--- head/sys/dev/fdt/simplebus.c	Sun Jul 11 20:29:34 2010	(r209903)
+++ head/sys/dev/fdt/simplebus.c	Sun Jul 11 20:30:59 2010	(r209904)
@@ -187,16 +187,16 @@ simplebus_attach(device_t dev)
 		resource_list_init(&di->di_res);
 
 		if (fdt_reg_to_rl(dt_child, &di->di_res, sc->sc_start_va)) {
-			device_printf(dev, "could not process 'reg' "
-			    "property\n");
+			device_printf(dev, "%s: could not process 'reg' "
+			    "property\n", di->di_ofw.obd_name);
 			ofw_bus_gen_destroy_devinfo(&di->di_ofw);
 			free(di, M_SIMPLEBUS);
 			continue;
 		}
 
 		if (fdt_intr_to_rl(dt_child, &di->di_res, di->di_intr_sl)) {
-			device_printf(dev, "could not process 'interrupts' "
-			    "property\n");
+			device_printf(dev, "%s: could not process "
+			    "'interrupts' property\n", di->di_ofw.obd_name);
 			resource_list_free(&di->di_res);
 			ofw_bus_gen_destroy_devinfo(&di->di_ofw);
 			free(di, M_SIMPLEBUS);
@@ -213,6 +213,9 @@ simplebus_attach(device_t dev)
 			free(di, M_SIMPLEBUS);
 			continue;
 		}
+#ifdef DEBUG
+		device_printf(dev, "added child: %s\n\n", di->di_ofw.obd_name);
+#endif
 		device_set_ivars(dev_child, di);
 	}
 


More information about the svn-src-all mailing list