aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenpaging
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2010-12-14 18:47:52 +0000
committerOlaf Hering <olaf@aepfle.de>2010-12-14 18:47:52 +0000
commitea9ae21f70cb5bf516e1008c9953dbe0f0883a14 (patch)
tree727ce629a4c6a36e6a418864344869e14f8c15c7 /tools/xenpaging
parentc759627d4180a4c2bd4eea2096ed8dd70f7c2d02 (diff)
downloadxen-ea9ae21f70cb5bf516e1008c9953dbe0f0883a14.tar.gz
xen-ea9ae21f70cb5bf516e1008c9953dbe0f0883a14.tar.bz2
xen-ea9ae21f70cb5bf516e1008c9953dbe0f0883a14.zip
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@aepfle.de> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/xenpaging')
-rw-r--r--tools/xenpaging/xenpaging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c
index 9bfbd12ea0..0e82121e29 100644
--- a/tools/xenpaging/xenpaging.c
+++ b/tools/xenpaging/xenpaging.c
@@ -141,7 +141,7 @@ xenpaging_t *xenpaging_init(xc_interface **xch_r, domid_t domain_id)
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;