]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: Convert DEBUG_DT to Kconfig
authorJulien Grall <julien.grall@arm.com>
Mon, 20 Jun 2016 10:03:28 +0000 (11:03 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 20 Jun 2016 10:03:28 +0000 (11:03 +0100)
Convert device-tree debugging to 'Kconfig' as
CONFIG_DEVICE_TREE_DEBUG.

The option is not enabled by default because the output is very
verbose.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
xen/Kconfig.debug
xen/arch/arm/domain_build.c
xen/common/device_tree.c

index abef0ad9cff66c2330f6b7e097313e6da1c82815..1be63445e31ee4ad1ec66e296c5376a9dd0c9ab3 100644 (file)
@@ -57,6 +57,14 @@ config VERBOSE_DEBUG
          Guest output from HYPERVISOR_console_io and hypervisor parsing
          ELF images (dom0) will be 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
index 2e4c2958a4af832370a2456c803bbe5212312710..85adbec2949e7e84289db6917b561c9747c7d925 100644 (file)
@@ -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 )
index 06a283728f033ec0c8e99f227616a92266f67fd1..0df2e4b950770bb95119dfe11facfce767d93290 100644 (file)
@@ -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)
 {