From: Dr. David Alan Gilbert Date: Tue, 12 Feb 2019 13:47:56 +0000 (+0000) Subject: HMP: Prepend errors with 'Error:' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=66363e9a43f649360a3f74d2805c9f864da027eb;p=qemu.git HMP: Prepend errors with 'Error:' Always make error messages start with 'Error:' as a fallback to make sure that anything parsing them can tell it failed. Note: Some places don't use hmp_handle_error Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Michael S. Tsirkin Message-Id: <20190212134758.10514-3-dgilbert@redhat.com> Signed-off-by: Laurent Vivier --- diff --git a/hmp.c b/hmp.c index b2a2b1f84e..4d14718fea 100644 --- a/hmp.c +++ b/hmp.c @@ -62,7 +62,7 @@ static void hmp_handle_error(Monitor *mon, Error **errp) { assert(errp); if (*errp) { - error_report_err(*errp); + error_reportf_err(*errp, "Error: "); } }