[PATCH] tools/libs/ctrl/xc_vm_event.c: Remove redundant newlines from error messages

Costin Lupu posted 1 patch 2 years, 7 months ago
Test gitlab-ci failed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/9baed69de702f3e87f14b86a4b4edbca386ec2e9.1628178928.git.costin.lupu@cs.pub.ro
tools/libs/ctrl/xc_vm_event.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
[PATCH] tools/libs/ctrl/xc_vm_event.c: Remove redundant newlines from error messages
Posted by Costin Lupu 2 years, 7 months ago
Messages printed with PERROR() do not need explicit newlines (\n)
because they are added implicitly.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
---
 tools/libs/ctrl/xc_vm_event.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/libs/ctrl/xc_vm_event.c b/tools/libs/ctrl/xc_vm_event.c
index a97c615b18..2ac27c71b2 100644
--- a/tools/libs/ctrl/xc_vm_event.c
+++ b/tools/libs/ctrl/xc_vm_event.c
@@ -58,7 +58,7 @@ void *xc_vm_event_enable(xc_interface *xch, uint32_t domain_id, int param,
     rc1 = xc_domain_pause(xch, domain_id);
     if ( rc1 != 0 )
     {
-        PERROR("Unable to pause domain\n");
+        PERROR("Unable to pause domain");
         return NULL;
     }
 
@@ -66,7 +66,7 @@ void *xc_vm_event_enable(xc_interface *xch, uint32_t domain_id, int param,
     rc1 = xc_hvm_param_get(xch, domain_id, param, &pfn);
     if ( rc1 != 0 )
     {
-        PERROR("Failed to get pfn of ring page\n");
+        PERROR("Failed to get pfn of ring page");
         goto out;
     }
 
@@ -80,7 +80,7 @@ void *xc_vm_event_enable(xc_interface *xch, uint32_t domain_id, int param,
                                               &ring_pfn);
         if ( rc1 != 0 )
         {
-            PERROR("Failed to populate ring pfn\n");
+            PERROR("Failed to populate ring pfn");
             goto out;
         }
     }
@@ -90,7 +90,7 @@ void *xc_vm_event_enable(xc_interface *xch, uint32_t domain_id, int param,
                                          &mmap_pfn, 1);
     if ( !ring_page )
     {
-        PERROR("Could not map the ring page\n");
+        PERROR("Could not map the ring page");
         goto out;
     }
 
@@ -124,7 +124,7 @@ void *xc_vm_event_enable(xc_interface *xch, uint32_t domain_id, int param,
     rc1 = xc_vm_event_control(xch, domain_id, op, mode, port);
     if ( rc1 != 0 )
     {
-        PERROR("Failed to enable vm_event\n");
+        PERROR("Failed to enable vm_event");
         goto out;
     }
 
-- 
2.20.1