]> xenbits.xensource.com Git - xen.git/commitdiff
xen: arm: early logging of command line
authorIan Campbell <ian.campbell@citrix.com>
Fri, 22 Nov 2013 16:24:27 +0000 (16:24 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 22 Nov 2013 16:35:11 +0000 (16:35 +0000)
Helpful for diagnosis of bad console= parameters.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/arm/setup.c

index cdcc2e7f0671f548d9061bc13f21944d765d2ac4..b032030d8a356e51fbb1af57bdadc68331a6b0ce 100644 (file)
@@ -596,6 +596,7 @@ void __init start_xen(unsigned long boot_phys_offset,
 {
     size_t fdt_size;
     int cpus, i;
+    const char *cmdline;
 
     setup_cache();
 
@@ -609,7 +610,9 @@ void __init start_xen(unsigned long boot_phys_offset,
         + (fdt_paddr & ((1 << SECOND_SHIFT) - 1));
     fdt_size = device_tree_early_init(device_tree_flattened, fdt_paddr);
 
-    cmdline_parse(device_tree_bootargs(device_tree_flattened));
+    cmdline = device_tree_bootargs(device_tree_flattened);
+    early_printk("Command line: %s\n", cmdline);
+    cmdline_parse(cmdline);
 
     setup_pagetables(boot_phys_offset, get_xen_paddr());
     setup_mm(fdt_paddr, fdt_size);