These functions fail when @stream is null and the current monitor
isn't HMP.

Signed-off-by: Markus Armbruster <[email protected]>
---
 util/qemu-print.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/qemu-print.c b/util/qemu-print.c
index 4a30cd1a8e..bbf8c1823e 100644
--- a/util/qemu-print.c
+++ b/util/qemu-print.c
@@ -45,6 +45,7 @@ int qemu_printf(const char *fmt, ...)
 /*
  * Print like vfprintf()
  * Print to @stream if non-null, else to current monitor.
+ * Beware: the latter fails unless we have one and it is HMP.
  */
 int qemu_vfprintf(FILE *stream, const char *fmt, va_list ap)
 {
@@ -57,6 +58,7 @@ int qemu_vfprintf(FILE *stream, const char *fmt, va_list ap)
 /*
  * Print like fprintf().
  * Print to @stream if non-null, else to current monitor.
+ * Beware: the latter fails unless we have one and it is HMP.
  */
 int qemu_fprintf(FILE *stream, const char *fmt, ...)
 {
-- 
2.52.0


Reply via email to