diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-02-10 20:47:28 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2010-03-16 17:45:35 +0100 |
commit | c7e4e8ceb379e15c8cb79427f10169b2ccaa8de6 (patch) | |
tree | eae221b1bf0426f66fb7751aec33deb5bd5bf652 /hw/qdev.c | |
parent | 361127dfb48d7d6b6b8e2e5fa79160d92e740a44 (diff) |
monitor: Use argument type 'O' for device_add
While there, improve the params help text.
Diffstat (limited to 'hw/qdev.c')
-rw-r--r-- | hw/qdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -766,8 +766,7 @@ void do_device_add(Monitor *mon, const QDict *qdict) { QemuOpts *opts; - opts = qemu_opts_parse(&qemu_device_opts, - qdict_get_str(qdict, "config"), 1); + opts = qemu_opts_from_qdict(&qemu_device_opts, qdict); if (opts) { if (qdev_device_help(opts) || qdev_device_add(opts) == NULL) { qemu_opts_del(opts); |