From: Ian Campbell Subject: Re: [PATCH] xen-access: Do not use ERROR out of xc handle scope Date: Tue, 18 Mar 2014 17:40:33 +0000 Message-ID: <1395164433.11824.55.camel@kazak.uk.xensource.com> References: <97A500D504438F4ABC02EBA81613CC63317CB3F2@xmb-aln-x02.cisco.com> <20140318101332.GA85408@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPy0D-0006ep-Ln for xen-devel@lists.xenproject.org; Tue, 18 Mar 2014 17:40:37 +0000 In-Reply-To: <20140318101332.GA85408@deinos.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: xen-devel@lists.xenproject.org, Stefano Stabellini , Ian Jackson , "Aravindh Puthiyaparambil (aravindp)" List-Id: xen-devel@lists.xenproject.org On Tue, 2014-03-18 at 11:13 +0100, Tim Deegan wrote: > Hi, > > At 20:15 +0000 on 17 Mar (1395083738), Aravindh Puthiyaparambil (aravindp) wrote: > > In places where xc handle is not in scope, use standard printf to display errors. > > > > Signed-off-by: Aravindh Puthiyaparambil > > Cc: Tim Deegan > > This is OK as far as it goes, but this code should not be using > ERROR() &c at all -- those are libxc internals, and since we're not > providing a logger argument or any flags to xc_interface_open, I don't > think they do anything useful here. How about something like this > (compile-tested only): > > ---8<---- > > tools/xen-access: don't use libxc internals directly. Was the platform info stuff just completely unused? > Signed-off-by: Tim Deegan Acked-by: Ian Campbell