@@ -55,6 +55,14 @@ config VERBOSE_DEBUG
Guest output from HYPERVISOR_console_io and hypervisor parsing
ELF images (dom0) is logged in the Xen ring buffer.
+config DEVICE_TREE_DEBUG
+ bool "Device tree debug messages"
+ depends on HAS_DEVICE_TREE
+ ---help---
+ Device tree parsing and DOM0 device tree building messages are
+ logged in the Xen ring buffer.
+ If unsure, say N here.
+
endif # DEBUG || EXPERT
endmenu
@@ -42,9 +42,7 @@ static void __init parse_dom0_mem(const char *s)
}
custom_param("dom0_mem", parse_dom0_mem);
-//#define DEBUG_DT
-
-#ifdef DEBUG_DT
+#ifdef CONFIG_DEVICE_TREE_DEBUG
# define DPRINT(fmt, args...) printk(XENLOG_DEBUG fmt, ##args)
#else
# define DPRINT(fmt, args...) do {} while ( 0 )
@@ -54,9 +54,7 @@ struct dt_alias_prop {
static LIST_HEAD(aliases_lookup);
-// #define DEBUG_DT
-
-#ifdef DEBUG_DT
+#ifdef CONFIG_DEVICE_TREE_DEBUG
# define dt_dprintk(fmt, args...) printk(XENLOG_DEBUG fmt, ##args)
static void dt_dump_addr(const char *s, const __be32 *addr, int na)
{