summary refs log tree commit diff stats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2014-09-04 22:32:46 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2014-09-20 17:55:53 +0400
commit6c5b0c0ac0be8cc618dfeb7bb29d113a078dcd71 (patch)
tree581f1d1fd9f79d3fed525a72730a14d3740c94e6 /scripts/qapi-commands.py
parent971ae6ef4772efe2adda3d773f334b9476ffa594 (diff)
downloadfocaccia-qemu-6c5b0c0ac0be8cc618dfeb7bb29d113a078dcd71.tar.gz
focaccia-qemu-6c5b0c0ac0be8cc618dfeb7bb29d113a078dcd71.zip
xen-hvm.c: Always return -1 when failure occurs in xen_hvm_init()
When failure occurs, it need to use "return -1" instead of exit(1), so
an upper layer has a chance to print failure information, too.

For simplicity, in xen_hvm_init(), also use '-1' instead of all
'-errno', since all related upper callers always exit(1) on failure.

It is not a normal function, it does not release related resources when
return -1, so need give related comments for it.

It passes common check:

  "./configure --enable-xen && make && make check"
  "echo $? == 0"

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions