On 9/10/25 18:03, Daniel P. Berrangé wrote:
The error_printf_unless_qmp() will print to the monitor if the current
one is HMP, if it is QMP nothing will be printed, otherwise stderr
will be used.

This scenario is easily handled by checking !monitor_cur_is_qmp() and
then calling the error_printf() function.

Signed-off-by: Daniel P. Berrangé<[email protected]>
---
  ui/vnc.c | 14 +++++++++-----
  1 file changed, 9 insertions(+), 5 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to