Patchwork [7/7] qdev: Add rudimentary help for property value

login
register
mail settings
Submitter Markus Armbruster
Date Jan. 29, 2010, 6:49 p.m.
Message ID <1264790942-15045-8-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/44015/
State New
Headers show

Comments

Markus Armbruster - Jan. 29, 2010, 6:49 p.m.
This provides the same information as reverted commit 2ba6edf0.  Not
much, just better than nothing.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 hw/qdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/qdev.c b/hw/qdev.c
index 7c3701c..539b5a2 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -179,7 +179,7 @@  int qdev_device_help(QemuOpts *opts)
     }
 
     for (prop = info->props; prop && prop->name; prop++) {
-        qemu_error("%s.%s\n", info->name, prop->name);
+        qemu_error("%s.%s=%s\n", info->name, prop->name, prop->info->name);
     }
     return 1;
 }