]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
libxl: tidy libxl_get_scheduler() according to CODING_STYLE
authorChester Lin <czylin@uwaterloo.ca>
Mon, 25 Jan 2016 00:45:34 +0000 (19:45 -0500)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 26 Jan 2016 16:26:43 +0000 (16:26 +0000)
commit337d298b0a071e55a0d934b9d8861828a35de4e8
tree43847f3b118deb338646912c324cc29cae8231c5
parent489b62533a66c7ae2c69d0635ea426a09d791fcc
libxl: tidy libxl_get_scheduler() according to CODING_STYLE

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>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c