diff options
author | Rafal Jaworowski <raj@FreeBSD.org> | 2010-07-11 20:30:59 +0000 |
---|---|---|
committer | Rafal Jaworowski <raj@FreeBSD.org> | 2010-07-11 20:30:59 +0000 |
commit | a22cd1e668352cf98ca13c83002726cdb965be54 (patch) | |
tree | dfbc5f7a25bcdf1440301e06a2e399680a3b6c3b /sys/dev/fdt | |
parent | b0ddbe8776164953af35a5c5fee926870030fc80 (diff) | |
download | src-a22cd1e668352cf98ca13c83002726cdb965be54.tar.gz src-a22cd1e668352cf98ca13c83002726cdb965be54.zip |
Let simplebus(4) diagnostics be a bit more descriptive.
Notes
Notes:
svn path=/head/; revision=209904
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/simplebus.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c index 5fc90c185904..3fa1dd882089 100644 --- a/sys/dev/fdt/simplebus.c +++ b/sys/dev/fdt/simplebus.c @@ -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); } |