]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/arm: don't print "Color configuration not found" warning for dom0
authorStefano Stabellini <sstabellini@kernel.org>
Tue, 21 Jan 2020 23:43:19 +0000 (15:43 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 21 Jan 2020 23:43:19 +0000 (15:43 -0800)
It is expected that dom0 will follow through that code path. Let's not
confuse the user with the warning in that case.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
xen/arch/arm/domain.c

index ca14ba9b8e1c14f2a19062fd80579b9b712950eb..9e1fafe2e19332a7ede43e4655c3b9f1d130f37e 100644 (file)
@@ -756,7 +756,9 @@ int arch_domain_create(struct domain *d,
     /* Setup domain colors */
     if ( !config->arch.colors.max_colors )
     {
-        printk(XENLOG_INFO "Color configuration not found, using default\n");
+        if ( !is_hardware_domain(d) )
+            printk(XENLOG_INFO "Color configuration not found for dom%u, using default\n",
+                   d->domain_id);
         d->colors = setup_default_colors(&d->max_colors);
         if ( !d->colors )
         {