]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: Add 0x prefix when printing memory size in construct_domU
authorMichal Orzel <michal.orzel@amd.com>
Tue, 3 Jan 2023 10:25:19 +0000 (11:25 +0100)
committerJulien Grall <jgrall@amazon.com>
Fri, 13 Jan 2023 10:04:42 +0000 (10:04 +0000)
Printing memory size in hex without 0x prefix can be misleading, so
add it. Also, take the opportunity to adhere to 80 chars line length
limit by moving the printk arguments to the next line.

Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/domain_build.c

index 829cea8de84fb9fac6d48fb118a12e3d28dea78e..f35f4d24569ceebf904c5365c1a8d8927d3618c0 100644 (file)
@@ -3774,7 +3774,8 @@ static int __init construct_domU(struct domain *d,
     if ( rc != 0 )
         return rc;
 
-    printk("*** LOADING DOMU cpus=%u memory=%"PRIx64"KB ***\n", d->max_vcpus, mem);
+    printk("*** LOADING DOMU cpus=%u memory=%#"PRIx64"KB ***\n",
+           d->max_vcpus, mem);
 
     kinfo.vpl011 = dt_property_read_bool(node, "vpl011");