Received: from eggs.gnu.org ([2001:4830:134:3::10]:32956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgWhI-0001HN-9N for qemu-devel@nongnu.org; Wed, 13 Nov 2013 04:25:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VgWhC-0000O0-Ab for qemu-devel@nongnu.org; Wed, 13 Nov 2013 04:25:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgWhC-0000No-3O for qemu-devel@nongnu.org; Wed, 13 Nov 2013 04:25:10 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAD9P9cA024106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 13 Nov 2013 04:25:09 -0500 Date: Wed, 13 Nov 2013 10:25:12 +0100 From: Kevin Wolf Message-ID: <20131113092512.GB2633@dhcp-200-207.str.redhat.com> References: <1384315458-23417-1-git-send-email-famz@redhat.com> <1384320296-22812-1-git-send-email-akong@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1384320296-22812-1-git-send-email-akong@redhat.com> Subject: Re: [Qemu-devel] [PATCH] qemu-img: re-assign ret after reporting original error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: famz@redhat.com, qemu-devel@nongnu.org Am 13.11.2013 um 06:24 hat Amos Kong geschrieben: > Currently the output error is always: > strerror(-4) -> Unknown error -4 > > This patch moves ret assignment after reporting original error. > > Signed-off-by: Amos Kong Fam and Amos, can you consolidate the fixes in one patch, and update the test case in the same patch as well? Kevin