From patchwork Fri Apr 8 06:48:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Lackorzynski X-Patchwork-Id: 90265 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CFD5DB6F85 for ; Fri, 8 Apr 2011 16:50:18 +1000 (EST) Received: from localhost ([127.0.0.1]:59907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q85WG-00026X-Nt for incoming@patchwork.ozlabs.org; Fri, 08 Apr 2011 02:50:13 -0400 Received: from [140.186.70.92] (port=44516 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q85Us-00024U-Tt for qemu-devel@nongnu.org; Fri, 08 Apr 2011 02:48:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q85Ur-0005qq-Jn for qemu-devel@nongnu.org; Fri, 08 Apr 2011 02:48:46 -0400 Received: from os.inf.tu-dresden.de ([141.76.48.99]:38492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q85Ur-0005qM-Eh for qemu-devel@nongnu.org; Fri, 08 Apr 2011 02:48:45 -0400 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=x) by os.inf.tu-dresden.de with esmtp (Exim 4.75) id 1Q85Up-0003pS-Np; Fri, 08 Apr 2011 08:48:43 +0200 From: Adam Lackorzynski To: qemu-devel@nongnu.org Date: Fri, 8 Apr 2011 08:48:42 +0200 Message-Id: <1302245322-6908-1-git-send-email-adam@os.inf.tu-dresden.de> X-Mailer: git-send-email 1.7.4.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 141.76.48.99 Cc: agraf@suse.de Subject: [Qemu-devel] [PATCH] multiboot: Quote filename in error message. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Quote filename in error message to spot possible whitespace character in the filename and make error message more meaningful. Signed-off-by: Adam Lackorzynski Acked-by: Alexander Graf --- hw/multiboot.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/multiboot.c b/hw/multiboot.c index 0d2bfb4..394ed01 100644 --- a/hw/multiboot.c +++ b/hw/multiboot.c @@ -272,7 +272,7 @@ int load_multiboot(void *fw_cfg, mb_debug("multiboot loading module: %s\n", initrd_filename); mb_mod_length = get_image_size(initrd_filename); if (mb_mod_length < 0) { - fprintf(stderr, "failed to get %s image size\n", initrd_filename); + fprintf(stderr, "Failed to open file '%s'\n", initrd_filename); exit(1); }