diff mbox

multiboot: Quote filename in error message.

Message ID 1302245322-6908-1-git-send-email-adam@os.inf.tu-dresden.de
State New
Headers show

Commit Message

Adam Lackorzynski April 8, 2011, 6:48 a.m. UTC
Quote filename in error message to spot possible whitespace character in
the filename and make error message more meaningful.

Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
---
 hw/multiboot.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Alexander Graf April 8, 2011, 7:40 a.m. UTC | #1
Am 08.04.2011 um 08:48 schrieb Adam Lackorzynski <adam@os.inf.tu-dresden.de>:

> Quote filename in error message to spot possible whitespace character in
> the filename and make error message more meaningful.
> 
> Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>

Acked-by: Alexander Graf <agraf@suse.de>

Alex
Stefan Hajnoczi April 8, 2011, 9:58 a.m. UTC | #2
On Fri, Apr 8, 2011 at 7:48 AM, Adam Lackorzynski
<adam@os.inf.tu-dresden.de> wrote:
> Quote filename in error message to spot possible whitespace character in
> the filename and make error message more meaningful.
>
> Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
> ---
>  hw/multiboot.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Thanks!  Merged into the trivial patches tree at:
git://repo.or.cz/qemu/stefanha.git trivial-patches

A pull request will be sent to merge this into qemu.git.  For more info, see:
http://qemu.org/Contribute/TrivialPatches

Stefan
diff mbox

Patch

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);
             }