From: Ian Jackson Subject: Re: [Patch v3] xl: Fix CHK_ERRNO() Date: Tue, 10 Dec 2013 17:19:29 +0000 Message-ID: <21159.19745.247469.137396@mariner.uk.xensource.com> References: <1386690317-11181-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1386690317-11181-1-git-send-email-andrew.cooper3@citrix.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: Andrew Cooper Cc: Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org 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