Re: [PATCH] fix make syntax-check failed

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

 



On 04.06.2012 05:37, Wen Congyang wrote:
> ---
>  tools/virsh.c |  170 ++++++++++++++++++++++++++++----------------------------
>  1 files changed, 85 insertions(+), 85 deletions(-)
> 
> diff --git a/tools/virsh.c b/tools/virsh.c
> index a934c13..0e41d00 100644
> --- a/tools/virsh.c
> +++ b/tools/virsh.c
> @@ -3502,16 +3502,16 @@ cmdSaveImageEdit(vshControl *ctl, const vshCmd *cmd)
>      if (vshCommandOptString(cmd, "file", &file) <= 0)
>          return false;
>  
> -    #define EDIT_GET_XML \
> -        virDomainSaveImageGetXMLDesc(ctl->conn, file, getxml_flags)
> -    #define EDIT_NOT_CHANGED \
> -        vshPrint(ctl, _("Saved image %s XML configuration " \
> -                        "not changed.\n"), file);           \
> -        ret = true; goto edit_cleanup;
> -    #define EDIT_DEFINE \
> -        virDomainSaveImageDefineXML(ctl->conn, file, doc_edited, define_flags)
> -    #define EDIT_FREE /* */
> -    #include "virsh-edit.c"
> +#define EDIT_GET_XML \
> +    virDomainSaveImageGetXMLDesc(ctl->conn, file, getxml_flags)
> +#define EDIT_NOT_CHANGED \
> +    vshPrint(ctl, _("Saved image %s XML configuration " \
> +                    "not changed.\n"), file);           \
> +    ret = true; goto edit_cleanup;
> +#define EDIT_DEFINE \
> +    virDomainSaveImageDefineXML(ctl->conn, file, doc_edited, define_flags)
> +#define EDIT_FREE /* */
> +#include "virsh-edit.c"
>  

Since these are not usual #define and #include (for example of what I
mean usual see head of virsh.c) but rather a part of function I think
they should be indented like other statements inside the function.
Therefore we need slightly different approach:

https://www.redhat.com/archives/libvir-list/2012-June/msg00055.html

Maybe others should step in and share their opinions.

Michal

--
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]