From nobody Mon Apr 29 07:26:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1628179121637748.7889041195721; Thu, 5 Aug 2021 08:58:41 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.164461.300769 (Exim 4.92) (envelope-from ) id 1mBflD-0007lb-De; Thu, 05 Aug 2021 15:58:19 +0000 Received: by outflank-mailman (output) from mailman id 164461.300769; Thu, 05 Aug 2021 15:58:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mBflD-0007lU-Ab; Thu, 05 Aug 2021 15:58:19 +0000 Received: by outflank-mailman (input) for mailman id 164461; Thu, 05 Aug 2021 15:58:18 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mBflC-0007lO-4J for xen-devel@lists.xenproject.org; Thu, 05 Aug 2021 15:58:18 +0000 Received: from mx.upb.ro (unknown [141.85.13.221]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id bc1aaad2-ce6b-4683-9fa8-7ba8339166a8; Thu, 05 Aug 2021 15:58:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx.upb.ro (Postfix) with ESMTP id D0068B56005D; Thu, 5 Aug 2021 18:58:14 +0300 (EEST) Received: from mx.upb.ro ([127.0.0.1]) by localhost (mx.upb.ro [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id AxPH0Rbm83PJ; Thu, 5 Aug 2021 18:58:12 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by mx.upb.ro (Postfix) with ESMTP id C81C5B56005F; Thu, 5 Aug 2021 18:58:12 +0300 (EEST) Received: from mx.upb.ro ([127.0.0.1]) by localhost (mx.upb.ro [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SPN36_qjnfB2; Thu, 5 Aug 2021 18:58:12 +0300 (EEST) Received: from localhost.localdomain (unknown [86.121.144.181]) by mx.upb.ro (Postfix) with ESMTPSA id 513BEB56005D; Thu, 5 Aug 2021 18:58:12 +0300 (EEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: bc1aaad2-ce6b-4683-9fa8-7ba8339166a8 X-Virus-Scanned: amavisd-new at upb.ro From: Costin Lupu To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Wei Liu , Juergen Gross Subject: [PATCH] tools/libs/ctrl/xc_vm_event.c: Remove redundant newlines from error messages Date: Thu, 5 Aug 2021 18:58:09 +0300 Message-Id: <9baed69de702f3e87f14b86a4b4edbca386ec2e9.1628178928.git.costin.lupu@cs.pub.ro> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1628179126442100001 Content-Type: text/plain; charset="utf-8" Messages printed with PERROR() do not need explicit newlines (\n) because they are added implicitly. Signed-off-by: Costin Lupu --- 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 doma= in_id, int param, rc1 =3D xc_domain_pause(xch, domain_id); if ( rc1 !=3D 0 ) { - PERROR("Unable to pause domain\n"); + PERROR("Unable to pause domain"); return NULL; } =20 @@ -66,7 +66,7 @@ void *xc_vm_event_enable(xc_interface *xch, uint32_t doma= in_id, int param, rc1 =3D xc_hvm_param_get(xch, domain_id, param, &pfn); if ( rc1 !=3D 0 ) { - PERROR("Failed to get pfn of ring page\n"); + PERROR("Failed to get pfn of ring page"); goto out; } =20 @@ -80,7 +80,7 @@ void *xc_vm_event_enable(xc_interface *xch, uint32_t doma= in_id, int param, &ring_pfn); if ( rc1 !=3D 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 doma= in_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; } =20 @@ -124,7 +124,7 @@ void *xc_vm_event_enable(xc_interface *xch, uint32_t do= main_id, int param, rc1 =3D xc_vm_event_control(xch, domain_id, op, mode, port); if ( rc1 !=3D 0 ) { - PERROR("Failed to enable vm_event\n"); + PERROR("Failed to enable vm_event"); goto out; } =20 --=20 2.20.1