All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw: improve multiboot module loading
@ 2011-04-07  0:19 ralf
  2011-04-07  0:31 ` Alexander Graf
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: ralf @ 2011-04-07  0:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: ralf

Multiboot modules couldn't be loaded when there are spaces between the
filename and ','. Those spaces can simply be killed.

Signed-off-by:
---
diff --git a/hw/multiboot.c b/hw/multiboot.c
index 0d2bfb4..27eb159 100644
--- a/hw/multiboot.c
+++ b/hw/multiboot.c
@@ -267,6 +267,9 @@ int load_multiboot(void *fw_cfg,
             /* if a space comes after the module filename, treat everything
                after that as parameters */
             target_phys_addr_t c = mb_add_cmdline(&mbs, initrd_filename);
+            /* Kill spaces at the beginning of the filename */
+            while( *initrd_filename == ' ' )
+              initrd_filename++;
             if ((next_space = strchr(initrd_filename, ' ')))
                 *next_space = '\0';
             mb_debug("multiboot loading module: %s\n", initrd_filename);

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-04-07 18:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-07  0:19 [Qemu-devel] [PATCH] hw: improve multiboot module loading ralf
2011-04-07  0:31 ` Alexander Graf
2011-04-07  5:56   ` Ralf Ramsauer
2011-04-07  8:38     ` Alexander Graf
2011-04-07 12:07       ` Ralf Ramsauer
2011-04-07 12:15         ` Alexander Graf
2011-04-07 12:24         ` Ralf Ramsauer
2011-04-07 12:48           ` Stefan Hajnoczi
2011-04-07 12:56             ` Ralf Ramsauer
2011-04-07 13:52               ` Stefan Hajnoczi
2011-04-07 18:13                 ` Adam Lackorzynski
2011-04-07  2:00 ` Brad Hards
2011-04-07  8:43 ` Stefan Hajnoczi
2011-04-07 10:18   ` Ralf Ramsauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.