From a3b5de4c992e6bc291cd5f8f26706a68ccd7f03c Mon Sep 17 00:00:00 2001 From: Burt P Date: Wed, 19 Jul 2017 04:59:35 -0500 Subject: 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 --- modules/devices/devicetree.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/devices/devicetree.c') 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); } -- cgit v1.2.3