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: Tue, 28 Sep 2010 15:52:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Amit Shah <address@hidden> writes:

> Add a 'description' along with each qdev property to document the input
> each qdev property takes.
[...]
> diff --git a/hw/qdev.c b/hw/qdev.c
> index 35858cb..b415025 100644
> --- a/hw/qdev.c
> +++ b/hw/qdev.c
> @@ -188,7 +188,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;
>  }

This is the only patch hunk that isn't about defining or initializing
the new member desc, isn't it?

[...]



reply via email to

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