Fix bug introduced in revision 1.9; in nexus_probe_nomatch() get device name

and type for printing info about the device that didn't probe from child, not
parent.
This fixes a panic on systems where not yet supported devices hang off of the
nexus, e.g. on E450.

Reported by:	joerg
This commit is contained in:
marius 2004-05-04 22:31:16 +00:00
parent c99291a3b0
commit 441f1204cc

View File

@ -228,13 +228,12 @@ nexus_attach(device_t dev)
static void
nexus_probe_nomatch(device_t dev, device_t child)
{
char *name = nexus_get_name(dev);
char *type;
if ((type = nexus_get_device_type(dev)) == NULL)
if ((type = nexus_get_device_type(child)) == NULL)
type = "(unknown)";
device_printf(dev, "<%s>, type %s (no driver attached)\n",
name, type);
nexus_get_name(child), type);
}
static int