From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAcbg-0002Ex-5R for qemu-devel@nongnu.org; Sun, 20 Dec 2015 06:56:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAcbd-0002s9-0C for qemu-devel@nongnu.org; Sun, 20 Dec 2015 06:56:56 -0500 Received: from [59.151.112.132] (port=41362 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAcbc-0002rm-Jg for qemu-devel@nongnu.org; Sun, 20 Dec 2015 06:56:52 -0500 References: <1450436632-23980-1-git-send-email-caoj.fnst@cn.fujitsu.com> <1450436632-23980-3-git-send-email-caoj.fnst@cn.fujitsu.com> <20151218183700.GZ3774@thinpad.lan.raisama.net> <87poy3wj4u.fsf@blackfin.pond.sub.org> From: Cao jin Message-ID: <56769807.5010809@cn.fujitsu.com> Date: Sun, 20 Dec 2015 19:59:03 +0800 MIME-Version: 1.0 In-Reply-To: <87poy3wj4u.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/5] igd-passthrough-i440FX: convert to realize() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , Eduardo Habkost Cc: mst@redhat.com, qemu-devel@nongnu.org, pbonzini@redhat.com, leon.alrae@imgtec.com, aurelien@aurel32.net, rth@twiddle.net On 12/19/2015 05:18 AM, Markus Armbruster wrote: > One short remark in addition to Eduardo's review. > > Eduardo Habkost writes: > [...] >>> >>> config_fd = open(path, O_RDWR); >>> if (config_fd < 0) { >>> + error_setg(errp, "No such device"); >>> return -ENODEV; >>> } > > Can we come up with nicer error messages? > Ok...will change the error msg to strerror(errno) > [...] > > > . > -- Yours Sincerely, Cao Jin