projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c759627
)
xenpaging: remove perror usage in xenpaging_init error path
author
Olaf Hering
<olaf@aepfle.de>
Tue, 14 Dec 2010 18:47:52 +0000
(18:47 +0000)
committer
Olaf Hering
<olaf@aepfle.de>
Tue, 14 Dec 2010 18:47:52 +0000
(18:47 +0000)
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>
tools/xenpaging/xenpaging.c
patch
|
blob
|
history
diff --git
a/tools/xenpaging/xenpaging.c
b/tools/xenpaging/xenpaging.c
index 9bfbd12ea0178088de6a75192fcc4a26b434fde7..0e82121e29a5fd503854f164e32298277d54a06e 100644
(file)
--- 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;