Received: from eggs.gnu.org ([2001:4830:134:3::10]:50643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCtx5-0005cu-Rv for qemu-devel@nongnu.org; Mon, 10 Feb 2014 11:43:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCtwx-0005Gx-Rx for qemu-devel@nongnu.org; Mon, 10 Feb 2014 11:43:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCtwx-0005Gi-KX for qemu-devel@nongnu.org; Mon, 10 Feb 2014 11:43:15 -0500 Date: Mon, 10 Feb 2014 18:48:12 +0200 From: "Michael S. Tsirkin" Message-ID: <1392050814-31814-10-git-send-email-mst@redhat.com> References: <1392050814-31814-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1392050814-31814-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 09/20] pc.c: better error message on initrd sizing failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Anthony Liguori Signed-off-by: Michael S. Tsirkin --- hw/i386/pc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 348b15f..e715a33 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -835,8 +835,8 @@ static void load_linux(FWCfgState *fw_cfg, initrd_size = get_image_size(initrd_filename); if (initrd_size < 0) { - fprintf(stderr, "qemu: error reading initrd %s\n", - initrd_filename); + fprintf(stderr, "qemu: error reading initrd %s: %s\n", + initrd_filename, strerror(errno)); exit(1); } -- MST