From: Ian Jackson Subject: Re: [PATCH] libxl: make is_hvm log on errors, and make callers check its error returns Date: Tue, 24 Aug 2010 14:40:26 +0100 Message-ID: <19571.52170.587867.516100@mariner.uk.xensource.com> References: <19570.43278.762578.453179@mariner.uk.xensource.com> <1282656531.3731.83.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1282656531.3731.83.camel@qabil.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: "Gianni Tedesco (3P)" Cc: "Jun Zhu (Intern)" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Gianni Tedesco (3P) writes ("Re: [Xen-devel] [PATCH] libxl: make is_hvm log on errors, and make callers check its error returns"): > I hate this coding style, it's really easy to miss whats going on when > scanning code and two things are done on one line. I think either lines > ought to be added or change declaration to: > > int get_vm_mode(libxl_ctx, int domid, int *hvm); > > so at least compiler can tell you if you're using it the way it was > intended. I'd be happy with the latter proposal. I don't like anything that increases the code size. Shall I resend my patch ? Ian.