All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] xenconfig: fix boot device parsing
       [not found] <1418569097-19322-1-git-send-email-wei.liu2@citrix.com>
@ 2014-12-15 10:11 ` Ian Campbell
  2014-12-15 13:32 ` [libvirt] " John Ferlan
  1 sibling, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2014-12-15 10:11 UTC (permalink / raw)
  To: Wei Liu; +Cc: libvir-list, jfehlig, xen-devel

On Sun, 2014-12-14 at 14:58 +0000, Wei Liu wrote:
> The original code always checked *boot which was in effect boot[0]. It
> should use boot[i].
> 
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Acked-by: Ian Campbell <ian.campbell@citrix.com>

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

* Re: [libvirt] [PATCH] xenconfig: fix boot device parsing
       [not found] <1418569097-19322-1-git-send-email-wei.liu2@citrix.com>
  2014-12-15 10:11 ` [PATCH] xenconfig: fix boot device parsing Ian Campbell
@ 2014-12-15 13:32 ` John Ferlan
  1 sibling, 0 replies; 2+ messages in thread
From: John Ferlan @ 2014-12-15 13:32 UTC (permalink / raw)
  To: Wei Liu, libvir-list; +Cc: xen-devel



On 12/14/2014 09:58 AM, Wei Liu wrote:
> The original code always checked *boot which was in effect boot[0]. It
> should use boot[i].

In the future, when you do the investigation, just reference the commit
id that caused the regression.  In this case it seems to be commit id
'547bd71a' (7/25/08 - quite a while ago)!

I'll work on getting this pushed shortly -

John
> 
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> ---
>  src/xenconfig/xen_common.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/xenconfig/xen_common.c b/src/xenconfig/xen_common.c
> index 7f4ec89..48431a7 100644
> --- a/src/xenconfig/xen_common.c
> +++ b/src/xenconfig/xen_common.c
> @@ -1071,7 +1071,7 @@ xenParseOS(virConfPtr conf, virDomainDefPtr def)
>              return -1;
>  
>          for (i = 0; i < VIR_DOMAIN_BOOT_LAST && boot[i]; i++) {
> -            switch (*boot) {
> +            switch (boot[i]) {
>              case 'a':
>                  def->os.bootDevs[i] = VIR_DOMAIN_BOOT_FLOPPY;
>                  break;
> 

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

end of thread, other threads:[~2014-12-15 13:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1418569097-19322-1-git-send-email-wei.liu2@citrix.com>
2014-12-15 10:11 ` [PATCH] xenconfig: fix boot device parsing Ian Campbell
2014-12-15 13:32 ` [libvirt] " John Ferlan

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.