[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xenpaging: remove perror usage in xenpaging_init error path
# 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"); break; default: - perror("Error initialising shared page"); + ERROR("Error initialising shared page: %s", strerror(errno)); break; } goto err; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |