qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Ralf Ramsauer" <ralf@humppa.name>
To: Alexander Graf <agraf@suse.de>
Cc: ralf@humppa.name, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading
Date: Thu, 7 Apr 2011 05:56:45 -0000 (UTC)	[thread overview]
Message-ID: <7f0b8ad36b8e8d1828f0dfc1803c0da0.squirrel@humppa.name> (raw)
In-Reply-To: <03A8D429-04D0-42D9-A664-7C52B3A4F812@suse.de>

Here the version with the correct coding style.

diff --git a/hw/multiboot.c b/hw/multiboot.c
index 0d2bfb4..2380d5e 100644
--- a/hw/multiboot.c
+++ b/hw/multiboot.c
@@ -267,6 +267,11 @@ 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);

  reply	other threads:[~2011-04-07  5:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f0b8ad36b8e8d1828f0dfc1803c0da0.squirrel@humppa.name \
    --to=ralf@humppa.name \
    --cc=agraf@suse.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).