[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading |
Date: |
Thu, 7 Apr 2011 02:31:13 +0200 |
On 07.04.2011, at 02:19, address@hidden wrote:
> 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++;
Please make sure to follow the coding style. There shouldn't be whitespace
between the (), but between while and ( and you need some extra braces :):
while (*initrd_filename == ' ') {
initrd_filename++;
}
Otherwise, the patch looks good! Please resend a corrected version, so that it
can be easily applied.
Alex
- [Qemu-devel] [PATCH] hw: improve multiboot module loading, ralf, 2011/04/06
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading,
Alexander Graf <=
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Ralf Ramsauer, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Alexander Graf, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Ralf Ramsauer, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Alexander Graf, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Ralf Ramsauer, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Stefan Hajnoczi, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Ralf Ramsauer, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Stefan Hajnoczi, 2011/04/07
- Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Adam Lackorzynski, 2011/04/07
Re: [Qemu-devel] [PATCH] hw: improve multiboot module loading, Brad Hards, 2011/04/06