From f95857b34d284895816f2091ef4fc6d9460ebf3b Mon Sep 17 00:00:00 2001 From: Adam Lackorzynski Date: Fri, 8 Apr 2011 08:48:42 +0200 Subject: [PATCH] multiboot: Quote filename in error message 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 Signed-off-by: Stefan Hajnoczi --- hw/multiboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/multiboot.c b/hw/multiboot.c index 0d2bfb4973..394ed0136e 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); } -- GitLab