* [PATCH] libxl: xc_domain_restore returns 0 on success, 1 on error
@ 2010-08-23 8:47 Ian Campbell
0 siblings, 0 replies; only message in thread
From: Ian Campbell @ 2010-08-23 8:47 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Campbell
# HG changeset patch
# User Ian Campbell <ian.campbell@citrix.com>
# Date 1282552884 -3600
# Node ID a91d8968269257dd4514d1c3c9994c3997897f91
# Parent 79f44934fa9dbf56d60a6d9fb76b74081eafe75f
libxl: xc_domain_restore returns 0 on success, 1 on error
Fix restore_common to handle it this way.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
diff -r 79f44934fa9d -r a91d89682692 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c Mon Aug 23 09:36:06 2010 +0100
+++ b/tools/libxl/libxl_dom.c Mon Aug 23 09:41:24 2010 +0100
@@ -260,7 +260,7 @@ int restore_common(libxl_ctx *ctx, uint3
state->store_port, &state->store_mfn,
state->console_port, &state->console_mfn,
info->hvm, info->u.hvm.pae, 0);
- if ( rc < 0 ) {
+ if ( rc ) {
XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "restoring domain");
return ERROR_FAIL;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-23 8:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 8:47 [PATCH] libxl: xc_domain_restore returns 0 on success, 1 on error Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.