mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
monitor: Use argument type 'O' for device_add
While there, improve the params help text.
This commit is contained in:
parent
361127dfb4
commit
c7e4e8ceb3
2 changed files with 3 additions and 4 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue