multiboot: Quote filename in error message
authorAdam Lackorzynski <adam@os.inf.tu-dresden.de>
Fri, 8 Apr 2011 06:48:42 +0000 (08:48 +0200)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Sat, 9 Apr 2011 09:40:46 +0000 (10:40 +0100)
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>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
hw/multiboot.c

index 0d2bfb4..394ed01 100644 (file)
@@ -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);
             }