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

[PATCH 1/2] tools/xen-hptool: Add missing newlines


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Wed, 23 Apr 2025 17:28:20 -0400
  • 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 (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=IhlLGEqvJTWZVsgLrt5Rcuhaxr+XmbrjR2vmegLLT1M=; b=WSDktLZsofBDiGSd3xCMHNc3XF0kpizNuMSUrICgCqActJZZtdxjutyHTzdnsb+evs7j4lluU/4jNY1ECDL1lOJE/R1FNJ5jDW5YfJJcpwGDvq70n+a+t6Mj/QuwwKUqcAXq5CJ4stT2O/etu4Baly4AmMZBP0SICEzyottyZ4mFmhyKX/g6J50siA3QhcV0HmmLC3eIkiLOcM6SqmOqrSwrh5aQtYdH4y5HE0gipiKSYJnpIFAhtMKBE+YX4ZbeFBjV9MgEzD4KtjjaoeCa/ebTADUQ3+Gec7UWP/U/uvfn0LMY5LLGk2XFlJmqD4Yo5ciNVc4PEr+BzJq7ukX9nw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RnRM+VxYt3teDBd+qWAPTCh4psRvYD+av9aqH/OWK2B1ViOMzKuaxKewSFVR6qB+RBgMM9xcmmjeP54AxHkv8nviLhAKXe6W/65qp7gmAT9M84/rBLN6bxAqCsmXTCjLFbn8a4yWVDRmwo+914N5D+migYYsdEiUpRNNnDzNKdZrgJoT3sqBIp2lMoDk4ABedTdQ7sR37M+RLeJGzVeO2y8gGvma4ZvANOnStu6cJ+QDh1yd64QDcU6VJBIa/K6YPpySn3YjhJeFUymKi1VV1smlAPAmxoLRuZnuIkuu2uLxc1COwFli8o++6cNjn3CY3DV+eVnGoaces2LjKdTo8g==
  • Cc: Jason Andryuk <jason.andryuk@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Wed, 23 Apr 2025 21:28:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Add some missing newlines to error messages.

Fixes: 284d5633be37 ("Tools: add online/offline hotplug user interfaces")
Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx>
---
 tools/misc/xen-hptool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/misc/xen-hptool.c b/tools/misc/xen-hptool.c
index 6d6aec8bad..d850404e31 100644
--- a/tools/misc/xen-hptool.c
+++ b/tools/misc/xen-hptool.c
@@ -51,7 +51,7 @@ static int hp_mem_online_func(int argc, char *argv[])
     ret = xc_mark_page_online(xch, mfn, mfn, &status);
 
     if (ret < 0)
-        fprintf(stderr, "Onlining page mfn %lx failed, error %x", mfn, errno);
+        fprintf(stderr, "Onlining page mfn %lx failed, error %x\n", mfn, 
errno);
     else if (status & (PG_ONLINE_FAILED |PG_ONLINE_BROKEN)) {
         fprintf(stderr, "Onlining page mfn %lx is broken, "
                         "Memory online failed\n", mfn);
@@ -82,7 +82,7 @@ static int hp_mem_query_func(int argc, char *argv[])
     ret = xc_query_page_offline_status(xch, mfn, mfn, &status);
 
     if (ret < 0)
-        fprintf(stderr, "Querying page mfn %lx failed, error %x", mfn, errno);
+        fprintf(stderr, "Querying page mfn %lx failed, error %x\n", mfn, 
errno);
     else
     {
                printf("Memory Status %x: [", status);
-- 
2.49.0




 


Rackspace

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