@samitouri / QOSamiQemu / commits / 037fbdd17d

qemu-print: document HMP/QMP behaviour better

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260828-qemu-no-hmp-v5-34-9227de146347@redhat.com>

Marc-André Lureau committed Aug 28, 2026 at 16:04 UTC 037fbdd17d1b7075e1df3334960f7263a3bf8acb
1 file changed +4 -2
util/qemu-print.c
+4 -2
@@ -17,7 +17,8 @@
17
18 /*
19 * Print like vprintf().
20 - * Print to current HMP monitor if we have one, else to stdout.
20 + * Print to current monitor if we have one, else to stdout.
21 + * (if the monitor is QMP, fail without printing anything)
22 */
23 int qemu_vprintf(const char *fmt, va_list ap)
24 {
@@ -30,7 +31,8 @@ int qemu_vprintf(const char *fmt, va_list ap)
31
32 /*
33 * Print like printf().
33 - * Print to current HMP monitor if we have one, else to stdout.
34 + * Print to current monitor if we have one, else to stdout.
35 + * (if the monitor is QMP, fail without printing anything)
36 */
37 int qemu_printf(const char *fmt, ...)
38 {