summaryrefslogtreecommitdiff
path: root/modules/devices/devicetree.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-19 04:59:35 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-19 07:20:40 -0700
commita3b5de4c992e6bc291cd5f8f26706a68ccd7f03c (patch)
treec1d5e51c24790efa1526e3f63b6da5d5c63e2aae /modules/devices/devicetree.c
parent405552399f9ce4fa14a791eb8b84baba2c87963d (diff)
device tree: display phandle, symbol, and alias mappings
* Of course, symbols and aliases are are the same as in /__symbols__ and /aliases. It still helps a bit. Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/devicetree.c')
-rw-r--r--modules/devices/devicetree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/devices/devicetree.c b/modules/devices/devicetree.c
index fdc13644..778e3693 100644
--- a/modules/devices/devicetree.c
+++ b/modules/devices/devicetree.c
@@ -241,12 +241,16 @@ void __scan_dtree()
{
dt = dtr_new(NULL);
gchar *summary = get_summary();
+ gchar *maps = dtr_maps_info(dt);
dtree_info = g_strdup("[Device Tree]\n");
mi_add("Summary", summary);
+ mi_add("Maps", maps);
add_keys("/");
//printf("%s\n", dtree_info);
+ g_free(summary);
+ g_free(maps);
dtr_free(dt);
}