Message ID | 1453183028-50263-1-git-send-email-czylin@uwaterloo.ca (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, 2016-01-19 at 00:57 -0500, Chester Lin wrote: > To more closely follow the guidelines in CODING_STYLE, store the > result > of xc_sched_id() in the local variable r, and the check the result of > the call in a separate statement. Change the type of the output > parameter given to xc_sched_id() from libxl_scheduler to int to match > the libxc interface. > > Additionally, change the error log statement to more accurately > reflect > the failure. This is the only functional change introduced by this > patch. > > Suggested-by: Ian Campbell <ian.campbell@citrix.com> > Signed-off-by: Chester Lin <czylin@uwaterloo.ca> > Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com> Regards, Dario
Hi Chester What we normally do for new version of patches is to send out a new series prefixed with "PATCH v2", instead of replying to old version of the patches. Could you collect Dario's Reviewed-by tags and send this series as v2. Thanks Wei.
On Tue, 2016-01-19 at 11:28 +0000, Wei Liu wrote: > Hi Chester > > What we normally do for new version of patches is to send out a new > series prefixed with "PATCH v2", instead of replying to old version of > the patches. > > Could you collect Dario's Reviewed-by tags and send this series as v2. Please call the resend v3 to avoid any confusion. http://wiki.xen.org/wiki/Submitting_Xen_Patches#Review.2C_Rinse_.26_Repeat also has some words on this topic. Ian.
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 9207621..7f28af8 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -5585,10 +5585,12 @@ out: libxl_scheduler libxl_get_scheduler(libxl_ctx *ctx) { - libxl_scheduler sched, ret; + int r, sched; + GC_INIT(ctx); - if ((ret = xc_sched_id(ctx->xch, (int *)&sched)) != 0) { - LOGE(ERROR, "getting domain info list"); + r = xc_sched_id(ctx->xch, &sched); + if (r != 0) { + LOGE(ERROR, "getting current scheduler id"); return ERROR_FAIL; GC_FREE; }