Now that all tests have been converted to rely on QMP stream result, we
can also redirect HMP output.

Signed-off-by: Marc-André Lureau <[email protected]>
---
 block/monitor/block-hmp-cmds.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/block/monitor/block-hmp-cmds.c b/block/monitor/block-hmp-cmds.c
index ed071c0f4144..b1a1b4bae127 100644
--- a/block/monitor/block-hmp-cmds.c
+++ b/block/monitor/block-hmp-cmds.c
@@ -553,8 +553,7 @@ void hmp_qemu_io(MonitorHMP *hmp, const QDict *qdict)
         return;
     }
 
-    /* use stdout and not monitor_puts() for compatiblity reasons */
-    printf("%s", out->human_readable_text);
+    monitor_puts(MONITOR(hmp), out->human_readable_text);
 }
 
 static void print_block_info(MonitorHMP *hmp, BlockInfo *info,

-- 
2.56.0.rc0.29.g47ce80527c56


Reply via email to