[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2] xen/arm: Add 0x prefix when printing memory size in construct_domU


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Tue, 3 Jan 2023 11:25:19 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1wG8Ayo4aOuncq1FnIWUKxCPPCI3r62/OM1xAaqLnPc=; b=XQFKrWqfbEa98m3l47QqBVK1zGJbiikXZmOVYc4BJo3fVM9XkPo0UBCz/lNDVXsA4+0tn8rSSjXc1LF0eS7Im09xphUaPHljNdc5aUEOS6KVqutUfM3t91qBhnRsd5agJ+3vdO3O8la4eD6MZ/4fcY/5/syHnBC0GJr/Ctpz/N3jNOf0uGBEVylIhzqRd8xDnUanavp2mqUCS9C4OxwEFDFz6NoowYUQHLQVQaQst4kPEe0q2AXZHV41SO5uE7uya7oU5z2S3oRtTG4IlP/Da4Z0X3Y4+24sUlIxZFKizor9qCDNi7FIhRwZA9K7ELlp9/aSDuCNWnBMbP9Irso3XA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OerhJLJ1dIwKnPPnc1vVMFxZFSnasESGa2Hu7zfkdb2Ilq9PAUbdrxdT5mpd6rZKz3gAYRxrq0fojRZxKOxuP32KEjlbBYlaAtZOz2eX6oq0xxLP7arnrW143vMT/zOnawAnE13cWwy1TQSNuQQYHyKg6/n6LsWoV/5up+WdZfwdH5WDdRjgkzlhjDptG5J/5GYItTPpvqsE9L4uIMxD8PmSC61dGVgK5diB7e7LQN/hKjVCDzvc8xF7yfG7D5VqWddrML6JzbqzR8uTe6nlYGzpcpQ9JVMbavvFiM/N4Xq9GChYSAcG/lZObd3GEZ5OsaQ1MrIlCsx2UnMvKuGQjA==
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 03 Jan 2023 10:25:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxx>
---
Changes in v2:
 - was: "Print memory size in decimal in construct_domU"
 - stick to hex but add a 0x prefix
 - adhere to 80 chars line length limit
---
 xen/arch/arm/domain_build.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 829cea8de84f..f35f4d24569c 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -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");
 
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.