* [PATCH] libxl.c:return val of libxl_wait_for_memory_target
@ 2014-10-06 8:12 Ayush Ruia
2014-10-06 8:57 ` Wei Liu
0 siblings, 1 reply; 3+ messages in thread
From: Ayush Ruia @ 2014-10-06 8:12 UTC (permalink / raw)
To: xen-devel; +Cc: Ayush Ruia, ian.jackson, ian.campbell, stefano.stabellini
Fixed the return value of the function libxl_wait_for_memory_target. It was always returning 0 even inthe case of an error.
Signed-off-by: Ayush Ruia <ayushruia@gmail.com>
---
tools/libxl/libxl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index 77672d0..59e5932 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -4700,7 +4700,7 @@ int libxl_wait_for_memory_target(libxl_ctx *ctx, uint32_t domid, int wait_secs)
rc = ERROR_FAIL;
out:
- return 0;
+ return rc;
}
int libxl_get_physinfo(libxl_ctx *ctx, libxl_physinfo *physinfo)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] libxl.c:return val of libxl_wait_for_memory_target
2014-10-06 8:12 [PATCH] libxl.c:return val of libxl_wait_for_memory_target Ayush Ruia
@ 2014-10-06 8:57 ` Wei Liu
2014-10-06 13:49 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Wei Liu @ 2014-10-06 8:57 UTC (permalink / raw)
To: Ayush Ruia
Cc: xen-devel, wei.liu2, ian.jackson, ian.campbell, stefano.stabellini
On Mon, Oct 06, 2014 at 03:12:26AM -0500, Ayush Ruia wrote:
> Fixed the return value of the function libxl_wait_for_memory_target. It was always returning 0 even inthe case of an error.
>
> Signed-off-by: Ayush Ruia <ayushruia@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] libxl.c:return val of libxl_wait_for_memory_target
2014-10-06 8:57 ` Wei Liu
@ 2014-10-06 13:49 ` Ian Campbell
0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2014-10-06 13:49 UTC (permalink / raw)
To: Wei Liu; +Cc: xen-devel, stefano.stabellini, ian.jackson, Ayush Ruia
On Mon, 2014-10-06 at 09:57 +0100, Wei Liu wrote:
> On Mon, Oct 06, 2014 at 03:12:26AM -0500, Ayush Ruia wrote:
> > Fixed the return value of the function libxl_wait_for_memory_target. It was always returning 0 even inthe case of an error.
> >
> > Signed-off-by: Ayush Ruia <ayushruia@gmail.com>
>
> Acked-by: Wei Liu <wei.liu2@citrix.com>
Applied, thanks.
Ian.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-06 13:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-06 8:12 [PATCH] libxl.c:return val of libxl_wait_for_memory_target Ayush Ruia
2014-10-06 8:57 ` Wei Liu
2014-10-06 13:49 ` 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.