[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] libxl: fix bootloader args setting


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Zhigang Wang <w1z2g3@xxxxxxxxx>
  • Date: Fri, 3 Feb 2012 16:41:25 -0500
  • Delivery-date: Fri, 03 Feb 2012 21:42:05 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Sorry to send duplicate patches. The first mail took a few hours to
show up in this mailing list. So I thought it didn't work. Will wait
longer next time ...

Zhigang

On Fri, Feb 3, 2012 at 1:39 PM, Zhigang Wang <zhigang.x.wang@xxxxxxxxxx> wrote:
> # HG changeset patch
> # User Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
> # Date 1328294351 18000
> # Node ID 9ae3b2b7b494ab8fbc54aa923101dc48132c6c6e
> # Parent Âe2722b24dc0962de37215320b05d1bb7c4c42864
> libxl: fix bootloader args setting
>
> Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
>
> diff -r e2722b24dc09 -r 9ae3b2b7b494 tools/libxl/libxl_bootloader.c
> --- a/tools/libxl/libxl_bootloader.c  ÂThu Jan 26 17:43:31 2012 +0000
> +++ b/tools/libxl/libxl_bootloader.c  ÂFri Feb 03 13:39:11 2012 -0500
> @@ -49,9 +49,11 @@ static char **make_bootloader_args(libxl
> Â Â flexarray_set(args, nr++, libxl__sprintf(gc, "--output-directory=%s", 
> "/var/run/libxl/"));
>
> Â Â if (info->u.pv.bootloader_args) {
> - Â Â Â Âchar *p = info->u.pv.bootloader_args[0];
> - Â Â Â Âwhile (*(p++))
> - Â Â Â Â Â Âflexarray_set(args, nr++, p);
> + Â Â Â Âchar **p = info->u.pv.bootloader_args;
> + Â Â Â Âwhile (*p) {
> + Â Â Â Â Â Âflexarray_set(args, nr++, *p);
> + Â Â Â Â Â Âp++;
> + Â Â Â Â}
> Â Â }
>
> Â Â flexarray_set(args, nr++, disk);
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.