Date: Sun, 11 Jul 2010 20:30:59 +0000 (UTC) From: Rafal Jaworowski <raj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209904 - head/sys/dev/fdt Message-ID: <201007112030.o6BKUxFs082650@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007112030.o6BKUxFs082650>