diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-04-04 16:10:18 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-04-04 16:10:18 +0100 |
commit | 023c5c2aaa17341e610624c48255bde538cb8c4a (patch) | |
tree | ff8ef6b29d7484ba97c82eea262cfe62bb0c574b /config | |
parent | abda66fdb0eaa1b7ec33e97e3e0e375f948dc651 (diff) | |
download | xen-023c5c2aaa17341e610624c48255bde538cb8c4a.tar.gz xen-023c5c2aaa17341e610624c48255bde538cb8c4a.tar.bz2 xen-023c5c2aaa17341e610624c48255bde538cb8c4a.zip |
libxl: fixup error handling in libxl_send_trigger
xc_domain_send_trigger returns -1 and sets errno on failure so use
LIBXL__LOG_ERRNO not LIBXL__LOG_ERRNOVAL(rc).
Change the default case of the switch to set rc=-1,errno=EINVAL too.
Also we weren't actually returning the error code we'd decided on.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions