aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/xc/lib/xc_domain.c12
-rw-r--r--tools/xc/py/Xc.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/xc/lib/xc_domain.c b/tools/xc/lib/xc_domain.c
index ae4dff003d..4d173bfd89 100644
--- a/tools/xc/lib/xc_domain.c
+++ b/tools/xc/lib/xc_domain.c
@@ -92,12 +92,12 @@ int xc_domain_getinfo(int xc_handle,
info->cpu =
(op.u.getdomaininfo.flags>>DOMFLAGS_CPUSHIFT) & DOMFLAGS_CPUMASK;
- info->dying = (op.u.getdomaininfo.flags & DOMFLAGS_DYING);
- info->crashed = (op.u.getdomaininfo.flags & DOMFLAGS_CRASHED);
- info->shutdown = (op.u.getdomaininfo.flags & DOMFLAGS_SHUTDOWN);
- info->paused = (op.u.getdomaininfo.flags & DOMFLAGS_PAUSED);
- info->blocked = (op.u.getdomaininfo.flags & DOMFLAGS_BLOCKED);
- info->running = (op.u.getdomaininfo.flags & DOMFLAGS_RUNNING);
+ info->dying = !!(op.u.getdomaininfo.flags & DOMFLAGS_DYING);
+ info->crashed = !!(op.u.getdomaininfo.flags & DOMFLAGS_CRASHED);
+ info->shutdown = !!(op.u.getdomaininfo.flags & DOMFLAGS_SHUTDOWN);
+ info->paused = !!(op.u.getdomaininfo.flags & DOMFLAGS_PAUSED);
+ info->blocked = !!(op.u.getdomaininfo.flags & DOMFLAGS_BLOCKED);
+ info->running = !!(op.u.getdomaininfo.flags & DOMFLAGS_RUNNING);
info->shutdown_reason =
(op.u.getdomaininfo.flags>>DOMFLAGS_SHUTDOWNSHIFT) &
diff --git a/tools/xc/py/Xc.c b/tools/xc/py/Xc.c
index 1c6a90c1b4..299202609e 100644
--- a/tools/xc/py/Xc.c
+++ b/tools/xc/py/Xc.c
@@ -1011,7 +1011,7 @@ static PyMethodDef pyxc_methods[] = {
(PyCFunction)pyxc_domain_create,
METH_VARARGS | METH_KEYWORDS, "\n"
"Create a new domain.\n"
- " mem_kb [int, 65536]: Memory allocation, in kilobytes.\n"
+ " mem_kb [int, 0]: Memory allocation, in kilobytes.\n"
" name [str, '(anon)']: Informative textual name.\n\n"
"Returns: [int] new domain identifier; -1 on error.\n" },