From: Ian Campbell Subject: RE: [PATCH V4] libxl: make libxl communicate with xenstored by socket or xenbus driver Date: Wed, 15 Sep 2010 09:41:49 +0100 Message-ID: <1284540109.14311.18387.camel@zakaz.uk.xensource.com> References: <433DDF91DFB08148BAD3FDB6FDDA314C9F35F3BB6A@LONPMAILBOX01.citrite.net> <19599.41566.729352.138960@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19599.41566.729352.138960@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "Jun Zhu (Intern)" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2010-09-14 at 17:27 +0100, Ian Jackson wrote: > Jun Zhu (Intern) writes ("RE: [Xen-devel] [PATCH V4] libxl: make libxl communicate with xenstored by socket or xenbus driver"): > > Since libxl__xs_open does not ctx which LIBXL__LOG needs, so I choose to output log with the raw fprintf. > > Then the right answer is to make it take a ctx parameter, surely ? gc->owner contains the surrounding context, doesn't it? Actually you probably want to use libxl__gc_owner(). > And ensure that during initialisation, the logging is initialised > before the xenstore connection.) This seems to be the case in libxl_ctx_init(). Ian.