Skip to content

Commit 029afc4

Browse files
author
Markus Armbruster
committed
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 commit e1043d6 "qdev: use object_property_help()" accidentally switched from qemu_printf() to printf(). Switch right back. Fixes: e1043d6 Cc: Marc-André Lureau <[email protected]> Cc: [email protected] Signed-off-by: Markus Armbruster <[email protected]> Message-Id: <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Li Qiang <[email protected]> Reviewed-by: Dr. David Alan Gilbert <[email protected]>
1 parent af3d690 commit 029afc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qdev-monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ int qdev_device_help(QemuOpts *opts)
300300
}
301301
g_ptr_array_sort(array, (GCompareFunc)qemu_pstrcmp0);
302302
for (i = 0; i < array->len; i++) {
303-
printf("%s\n", (char *)array->pdata[i]);
303+
qemu_printf("%s\n", (char *)array->pdata[i]);
304304
}
305305
g_ptr_array_set_free_func(array, g_free);
306306
g_ptr_array_free(array, true);

0 commit comments

Comments
 (0)