From: Ian Jackson Subject: Re: [PATCH 1/4] libxl: vcpuset: Return error values. Date: Tue, 3 Feb 2015 11:29:49 +0000 Message-ID: <21712.45357.160409.857078@mariner.uk.xensource.com> References: <1402045657.29759.34.camel@kazak.uk.xensource.com> <1422910069-15760-1-git-send-email-konrad.wilk@oracle.com> <1422910069-15760-2-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YIbrI-0001yE-G5 for xen-devel@lists.xenproject.org; Tue, 03 Feb 2015 11:41:32 +0000 In-Reply-To: <1422910069-15760-2-git-send-email-konrad.wilk@oracle.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: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Konrad Rzeszutek Wilk writes ("[PATCH 1/4] libxl: vcpuset: Return error values."): > The function does not return any values at all. Convert the > internal libxl ones (ERROR_FAIL, ..., etc) to positive values > and for the other cases just return standard libxl values. This makes no sense to me, I'm afraid. What is the return value type of this function ? Normally functions in libxl and many in xl return a libxl error code. I can't see any reason for ever writing -ERROR_FOO. Ian.