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:
parent
2cbc052a4c
commit
9f7cc56b4e
@ -228,13 +228,12 @@ nexus_attach(device_t dev)
|
|||||||
static void
|
static void
|
||||||
nexus_probe_nomatch(device_t dev, device_t child)
|
nexus_probe_nomatch(device_t dev, device_t child)
|
||||||
{
|
{
|
||||||
char *name = nexus_get_name(dev);
|
|
||||||
char *type;
|
char *type;
|
||||||
|
|
||||||
if ((type = nexus_get_device_type(dev)) == NULL)
|
if ((type = nexus_get_device_type(child)) == NULL)
|
||||||
type = "(unknown)";
|
type = "(unknown)";
|
||||||
device_printf(dev, "<%s>, type %s (no driver attached)\n",
|
device_printf(dev, "<%s>, type %s (no driver attached)\n",
|
||||||
name, type);
|
nexus_get_name(child), type);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user