From: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] libxenlight: Clean up logging arrangements
Date: Tue, 17 Nov 2009 18:18:35 +0000 [thread overview]
Message-ID: <4B02E8FB.6010704@eu.citrix.com> (raw)
In-Reply-To: <19202.58259.909019.355806@mariner.uk.xensource.com>
Ian Jackson wrote:
> libxenlight: Clean up logging arrangements
>
> * Introduce new variants of the logging functions which include
> errno values (converted using strerror) in the messages passed to the
> application's logging callback.
>
> * While we're at it, introduce xl_logv.
>
> * Use the new errno-including logging functions everywhere where
> appropriate. In general, xc_... functions return errno values or 0;
> xs_... functions return 0 or -1 (or some such) setting errno.
>
> * When libxl_xs_get_dompath fails, do not treat it as an allocation
> error. It isn't: it usually means xenstored failed.
>
> * Remove many spurious \n's from log messages. (The applications log
> callback is expected to add a \n if it wants to do that, so libxl's
> logging functions should be passes strings without \n.)
>
> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
both patches look good.
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
Thanks,
--
Vincent
next prev parent reply other threads:[~2009-11-17 18:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-17 17:55 [PATCH] libxenlight: Clean up logging arrangements Ian Jackson
2009-11-17 18:11 ` [PATCH] libxenlight: correct broken osdeps.[ch] Ian Jackson
2009-11-17 18:20 ` Ian Jackson
2009-11-17 18:18 ` Vincent Hanquez [this message]
2009-11-17 18:48 ` [PATCH] libxenlight: Clean up logging arrangements Ian Jackson
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=4B02E8FB.6010704@eu.citrix.com \
--to=vincent.hanquez@eu.citrix.com \
--cc=Ian.Jackson@eu.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.