xen/device-tree: Print the DT path on error in dt_for_each_range

With the current log is not possible for the user to understand
properly the error:

(XEN) Grant table range: 0x0000007fc00000-0x0000007fc72000
(XEN) DT: no ranges; cannot enumerate
(XEN) Device tree generation failed (-22).
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Could not set up DOM0 guest OS
(XEN) ****************************************
(XEN)

The other error message within the function already print the DT path.
Do the same here.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
This commit is contained in:
Julien Grall authored and Ian Campbell committed 2015-10-22 16:19:29 +01:00
1 parent 9b3c6b13e0
commit 01a8a8126d
1 file changed
+2 -1
+2 -1
View File
@@ -880,7 +880,8 @@ int dt_for_each_range(const struct dt_device_node *dev,
ranges = dt_get_property(dev, "ranges", &rlen);
if ( ranges == NULL )
{
printk(XENLOG_ERR "DT: no ranges; cannot enumerate\n");
printk(XENLOG_ERR "DT: no ranges; cannot enumerate %s\n",
dev->full_name);
return -EINVAL;
}
if ( rlen == 0 ) /* Nothing to do */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.