[Top][All Lists]
[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: |
Amit Shah |
Subject: |
Re: [Qemu-devel] [PATCH 1/4] qdev: Add a description field for qdev properties for documentation |
Date: |
Tue, 28 Sep 2010 19:32:23 +0530 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On (Tue) Sep 28 2010 [15:52:02], Markus Armbruster wrote:
> 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?
Right; the other hunks just add the new desc field for all the callers.
Amit
- [Qemu-devel] [PATCH 0/4] First steps towards documenting qdev devices/options, Amit Shah, 2010/09/15
- [Qemu-devel] [PATCH 2/4] virtio-serial: Add description fields for qdev properties, Amit Shah, 2010/09/15
- [Qemu-devel] [PATCH 3/4] net.h: Add description fields for qdev properites, Amit Shah, 2010/09/15
- [Qemu-devel] [PATCH 1/4] qdev: Add a description field for qdev properties for documentation, Amit Shah, 2010/09/15
- [Qemu-devel] [PATCH 4/4] block_int.h: Provide documentation for common block qdev properties, Amit Shah, 2010/09/15
- Re: [Qemu-devel] [PATCH 0/4] First steps towards documenting qdev devices/options, Markus Armbruster, 2010/09/28