mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
qdev: Fix device_add DRIVER,help to print to monitor
Help on device properties gets printed to stdout instead of the monitor. If you have the monitor anywhere else, no help for you. Broken when commite1043d674d
"qdev: use object_property_help()" accidentally switched from qemu_printf() to printf(). Switch right back. Fixes:e1043d674d
Cc: Marc-André Lureau <marcandre.lureau@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200714160202.3121879-2-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Li Qiang <liq3ea@gmail.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> (cherry picked from commit029afc4e76
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
committed by
Michael Roth
parent
d2581f25ec
commit
c16fd8a2bb
@ -299,7 +299,7 @@ int qdev_device_help(QemuOpts *opts)
|
|||||||
}
|
}
|
||||||
g_ptr_array_sort(array, (GCompareFunc)qemu_pstrcmp0);
|
g_ptr_array_sort(array, (GCompareFunc)qemu_pstrcmp0);
|
||||||
for (i = 0; i < array->len; i++) {
|
for (i = 0; i < array->len; i++) {
|
||||||
printf("%s\n", (char *)array->pdata[i]);
|
qemu_printf("%s\n", (char *)array->pdata[i]);
|
||||||
}
|
}
|
||||||
g_ptr_array_set_free_func(array, g_free);
|
g_ptr_array_set_free_func(array, g_free);
|
||||||
g_ptr_array_free(array, true);
|
g_ptr_array_free(array, true);
|
||||||
|
Reference in New Issue
Block a user