From: Don Slutz <dslutz@verizon.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>, xen-devel@lists.xensource.com
Cc: ian.campbell@eu.citrix.com, Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH 1/2] libxl: Fix a couple of log messages to print correct errnos
Date: Fri, 17 Oct 2014 08:24:57 -0400 [thread overview]
Message-ID: <54410A99.2000404@terremark.com> (raw)
In-Reply-To: <1413481453-25801-1-git-send-email-ian.jackson@eu.citrix.com>
On 10/16/14 13:44, Ian Jackson wrote:
> xc_domain_create and xc_cpupool_movedomain do not return errno values;
> they return -1 and set errno. Fix the logging accordingly.
>
> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
> ---
> tools/libxl/libxl_create.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
> index 8b82584..8ae9701 100644
> --- a/tools/libxl/libxl_create.c
> +++ b/tools/libxl/libxl_create.c
> @@ -515,14 +515,14 @@ int libxl__domain_make(libxl__gc *gc, libxl_domain_create_info *info,
>
> ret = xc_domain_create(ctx->xch, info->ssidref, handle, flags, domid);
> if (ret < 0) {
> - LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, ret, "domain creation fail");
> + LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "domain creation fail");
> rc = ERROR_FAIL;
> goto out;
> }
>
> ret = xc_cpupool_movedomain(ctx->xch, info->poolid, *domid);
> if (ret < 0) {
> - LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, ret, "domain move fail");
> + LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "domain move fail");
> rc = ERROR_FAIL;
> goto out;
> }
Looks good.
Reviewed-by: Don Slutz <dslutz@verizon.com>
next prev parent reply other threads:[~2014-10-17 12:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 16:05 openfile handle to qemu-resume file web1
2014-10-15 16:16 ` Ian Jackson
2014-10-16 17:44 ` [PATCH 1/2] libxl: Fix a couple of log messages to print correct errnos Ian Jackson
2014-10-16 17:44 ` [PATCH 2/2] libxl: Avoid fd leak of qemu state fd during migration Ian Jackson
2014-10-16 17:45 ` Ian Jackson
2014-10-17 12:38 ` Wei Liu
2014-10-20 13:21 ` Ian Campbell
2014-10-17 12:24 ` Don Slutz [this message]
2014-10-17 12:26 ` [PATCH 1/2] libxl: Fix a couple of log messages to print correct errnos Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54410A99.2000404@terremark.com \
--to=dslutz@verizon.com \
--cc=ian.campbell@eu.citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.