From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiTsk-00013E-Tl for qemu-devel@nongnu.org; Tue, 11 Dec 2012 12:44:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiTsg-0000ml-Vn for qemu-devel@nongnu.org; Tue, 11 Dec 2012 12:44:38 -0500 Received: from mel.act-europe.fr ([194.98.77.210]:46197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiTsg-0000mT-Ot for qemu-devel@nongnu.org; Tue, 11 Dec 2012 12:44:34 -0500 Message-ID: <50C770FE.6010108@adacore.com> Date: Tue, 11 Dec 2012 18:44:30 +0100 From: Fabien Chouteau MIME-Version: 1.0 References: <1355140582-5354-1-git-send-email-chouteau@adacore.com> <20121211092151.GB30567@stefanha-thinkpad.muc.redhat.com> In-Reply-To: <20121211092151.GB30567@stefanha-thinkpad.muc.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Fix error code checking for SetFilePointer() call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kwolf@redhat.com, blauwirbel@gmail.com, qemu-devel@nongnu.org On 12/11/2012 10:21 AM, Stefan Hajnoczi wrote: > The fprintf() is kind of iffy but we only return -EIO so I guess it > helps to print the full error. I add it because it took me a while to get to the actual error. Without it the error message is even more cryptic: qemu-system-ppc.exe: -hda fat:no-mbr:rw:.: could not open disk image fat:no-mbr:rw:.: Operation not permitted At least it helps to find where the error comes from. -- Fabien Chouteau