qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/4] qdev: Add a description field for qdev prop


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 1/4] qdev: Add a description field for qdev properties for documentation
Date: Mon, 10 Jan 2011 15:31:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Amit Shah <address@hidden> writes:

[...]
> diff --git a/hw/qdev.c b/hw/qdev.c
> index 6fc9b02..168d0f6 100644
> --- a/hw/qdev.c
> +++ b/hw/qdev.c
> @@ -185,7 +185,8 @@ int qdev_device_help(QemuOpts *opts)
>          if (!prop->info->parse) {
>              continue;           /* no way to set it, don't show */
>          }
> -        error_printf("%s.%s=%s\n", info->name, prop->name, prop->info->name);
> +        error_printf("%s.%s=%s, %s\n", info->name, prop->name,
> +                     prop->info->name, prop->desc ?: "");
>      }
>      return 1;
>  }

Output could be made prettier (align the help texts).  Preferrably in a
follow-up commit, because this one's seen enough respins already.

[...]



reply via email to

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