[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.6] xen/device-tree: Print the DT path on error in dt_for_each_range



commit 00fa9ac155ff33f5a70655476fd086ab676d0a16
Author:     Julien Grall <julien.grall@xxxxxxxxxx>
AuthorDate: Mon Oct 19 13:58:00 2015 +0100
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Wed Jan 20 15:50:54 2016 +0000

    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@xxxxxxxxxx>
    (cherry picked from commit 01a8a8126d02b81bac4fe81541be0cccefc8a4c8)
---
 xen/common/device_tree.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c
index 18cdb6f..08a97ef 100644
--- a/xen/common/device_tree.c
+++ b/xen/common/device_tree.c
@@ -849,7 +849,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 */
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.6

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.