qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/2] qapi2texi: change texi formatters


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 1/2] qapi2texi: change texi formatters
Date: Fri, 27 Jan 2017 08:44:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

I don't like "change FOO" subject lines.  What about;

    qapi: Simplify qapi2texi.py a bit

This way, it's obvious that the commit isn't supposed to change
behavior.  Can touch up on commit.

Marc-André Lureau <address@hidden> writes:

> STRUCT_FMT is generic enough, rename it to TYPE_FMT, use it for unions.
>
> Rename COMMAND_FMT to MSG_FMT, since it applies to both commands and
> events.
>
> Signed-off-by: Marc-André Lureau <address@hidden>
> ---
>  scripts/qapi2texi.py | 46 +++++++++++++++++++---------------------------
>  1 file changed, 19 insertions(+), 27 deletions(-)
>
> diff --git a/scripts/qapi2texi.py b/scripts/qapi2texi.py
> index 83ded95c2d..e1b79c2ad3 100755
> --- a/scripts/qapi2texi.py
> +++ b/scripts/qapi2texi.py
> @@ -9,7 +9,7 @@ import sys
>  
>  import qapi
>  
> -COMMAND_FMT = """
> +MSG_FMT = """

QMP_MSG_FMT?  Your choice, can rename on commit.

>  @deftypefn {type} {{}} {name}
>  
>  {body}
[...]

With the commit message improved:
Reviewed-by: Markus Armbruster <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]