Re: [libvirt] [PATCH 4/4] Fix formatting of machine types in capabilities XML

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

 



On Mon, Sep 07, 2009 at 02:44:14PM +0100, Mark McLoughlin wrote:
> * src/capabilities.c: fix machine type formatting in
>   virCapabilitiesFormatXML()
> ---
>  src/capabilities.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/capabilities.c b/src/capabilities.c
> index 289180d..38fe7fc 100644
> --- a/src/capabilities.c
> +++ b/src/capabilities.c
> @@ -713,7 +713,7 @@ virCapabilitiesFormatXML(virCapsPtr caps)
>  
>              for (k = 0 ; k < caps->guests[i]->arch.domains[j]->info.nmachines ; k++) {
>                  virCapsGuestMachinePtr machine = caps->guests[i]->arch.domains[j]->info.machines[k];
> -                virBufferAddLit(&xml, "      <machine");
> +                virBufferAddLit(&xml, "        <machine");
>                  if (machine->canonical)
>                      virBufferVSprintf(&xml, " canonical='%s'", machine->canonical);
>                  virBufferVSprintf(&xml, ">%s</machine>\n", machine->name);

  Ah, yes, theorically equivalent but nicer :-)

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]