|
@@ -212,8 +212,8 @@ static int __init of_unittest_check_node_linkage(struct device_node *np)
|
|
|
|
|
|
for_each_child_of_node(np, child) {
|
|
|
if (child->parent != np) {
|
|
|
- pr_err("Child node %s links to wrong parent %s\n",
|
|
|
- child->name, np->name);
|
|
|
+ pr_err("Child node %pOFn links to wrong parent %pOFn\n",
|
|
|
+ child, np);
|
|
|
rc = -EINVAL;
|
|
|
goto put_child;
|
|
|
}
|
|
@@ -1040,16 +1040,16 @@ static void __init of_unittest_platform_populate(void)
|
|
|
for_each_child_of_node(np, child) {
|
|
|
for_each_child_of_node(child, grandchild)
|
|
|
unittest(of_find_device_by_node(grandchild),
|
|
|
- "Could not create device for node '%s'\n",
|
|
|
- grandchild->name);
|
|
|
+ "Could not create device for node '%pOFn'\n",
|
|
|
+ grandchild);
|
|
|
}
|
|
|
|
|
|
of_platform_depopulate(&test_bus->dev);
|
|
|
for_each_child_of_node(np, child) {
|
|
|
for_each_child_of_node(child, grandchild)
|
|
|
unittest(!of_find_device_by_node(grandchild),
|
|
|
- "device didn't get destroyed '%s'\n",
|
|
|
- grandchild->name);
|
|
|
+ "device didn't get destroyed '%pOFn'\n",
|
|
|
+ grandchild);
|
|
|
}
|
|
|
|
|
|
platform_device_unregister(test_bus);
|