From: Ian Campbell Subject: Re: [PATCH 02/19] libxl: init: libxl__poller_init and _get take gc Date: Thu, 13 Mar 2014 16:21:18 +0000 Message-ID: <1394727678.16364.4.camel@kazak.uk.xensource.com> References: <1393945016-1417-1-git-send-email-ian.jackson@eu.citrix.com> <1393945016-1417-3-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1393945016-1417-3-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Shriram Rajagopalan , xen-devel@lists.xensource.com, Lai Jiangshan , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2014-03-04 at 14:56 +0000, Ian Jackson wrote: > Change libxl__poller_init and libxl__poller__get to take a libxl__gc* > rather than a libxl_ctx*. The gc is not used for memory allocation > but simply to provide the standard local variable "gc" expected by the > convenience macros. Doing this makes the error logging more > convenient. > > Hence, convert the logging calls to use the LOG* convenience macros. > > And consequently, change the call sites, and the function bodies to > use CTX rather than ctx. > > Also convert a call to malloc() (with error check) in > libxl__poller_get, to libxl__zalloc (no error check needed). > > Signed-off-by: Ian Jackson > CC: Stefano Stabellini Acked-by: Ian Campbell