]> xenbits.xensource.com Git - xen.git/commit
libxl: libxl_tmem functions improving coding style
authorPaulina Szubarczyk <paulinaszubarczyk@gmail.com>
Mon, 9 May 2016 11:30:58 +0000 (13:30 +0200)
committerWei Liu <wei.liu2@citrix.com>
Thu, 9 Jun 2016 15:31:56 +0000 (16:31 +0100)
commit9554c36ff326e984837eb7f604b3e54cc27c5361
tree5e8759d0a7591a029e41e8abd8644eac08503f47
parente3ccca40cd30f575f1aa8ebba5b93af7b92c0649
libxl: libxl_tmem functions improving coding style

In accordance with CODING_SYTLE:
 - Use 'r' for return values to functions whose return values are a
   different error space (like xc_tmem_control, xc_tmem_auth)

libxc functions are supposed to, on failure, set errno and always
return -1  which is the value stored in 'r', therfore use LOGE()
instead LOGEV() with the 'r' value.

Signed-off-by: Paulina Szubarczyk <paulinaszubarczyk@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c