From: Ian Campbell Subject: Re: [Patch v3] xl: Fix CHK_ERRNO() Date: Wed, 18 Dec 2013 11:10:07 +0000 Message-ID: <1387365007.27441.107.camel@kazak.uk.xensource.com> References: <1386690317-11181-1-git-send-email-andrew.cooper3@citrix.com> <21159.19745.247469.137396@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21159.19745.247469.137396@mariner.uk.xensource.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: Andrew Cooper , Xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2013-12-10 at 17:19 +0000, Ian Jackson wrote: > Andrew Cooper writes ("[Xen-devel] [Patch v3] xl: Fix CHK_ERRNO()"): > > The macro CHK_ERRNO() was being used to check two different error schemes, and > > succeeded at neither. > > > > Split the macro into two; CHK_SYSCALL() for calls which return -1 and set > > errno on error, and CHK_ERRNOVAL() for calls which return an errno. > > > > In both cases, ensure that strerror() now gets called with the error integer. > > Acked-by: Ian Jackson Applied.