This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] xenpaging: remove perror usage in xenpagi

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenpaging: remove perror usage in xenpaging_init error path
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Dec 2010 05:34:10 -0800
Delivery-date: Thu, 23 Dec 2010 05:40:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1292352472 0
# Node ID fdf95845c2f8f1a48f1bf46f184404be4d835a8a
# Parent  e66d893d3f7e2e8aba7b6d233291e999c439ee60
xenpaging: remove perror usage in xenpaging_init error path

Use the libxc error macro to report errors if initialising xenpaging
fails. Also report the actual errno string.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
 tools/xenpaging/xenpaging.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r e66d893d3f7e -r fdf95845c2f8 tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c       Tue Dec 14 18:47:10 2010 +0000
+++ b/tools/xenpaging/xenpaging.c       Tue Dec 14 18:47:52 2010 +0000
@@ -141,7 +141,7 @@ xenpaging_t *xenpaging_init(xc_interface
                 ERROR("EPT not supported for this guest");
-                perror("Error initialising shared page");
+                ERROR("Error initialising shared page: %s", strerror(errno));
         goto err;

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xenpaging: remove perror usage in xenpaging_init error path, Xen patchbot-unstable <=