[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 09/14] HMP: Prepend errors with 'Error:'
From: |
Laurent Vivier |
Subject: |
[Qemu-trivial] [PULL 09/14] HMP: Prepend errors with 'Error:' |
Date: |
Thu, 14 Feb 2019 11:47:12 +0100 |
From: "Dr. David Alan Gilbert" <address@hidden>
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 <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
hmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hmp.c b/hmp.c
index b2a2b1f84e33..4d14718fea4a 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: ");
}
}
--
2.20.1
- [Qemu-trivial] [PULL 00/14] Trivial branch patches, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 04/14] configure: remove handling of "wav" audio driver, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 06/14] configure: Add HAX support in NetBSD, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 13/14] hw/sparc64: Explicitly set default_display = "std", Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 03/14] qemu-options: Remove deprecated option -clock, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 05/14] configure: fix qemu-img name, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 07/14] configure: Make -Waddress-of-packed-member warnings be errors, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 11/14] wavcapture: Convert to error_report, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 08/14] pckbd: Convert DPRINTF->trace, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 12/14] hw/dma/i8257: Use qemu_log_mask(UNIMP) instead of fprintf, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 09/14] HMP: Prepend errors with 'Error:',
Laurent Vivier <=
- [Qemu-trivial] [PULL 02/14] qemu-deprecated: Remove -virtioconsole and -no-frame for good, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 01/14] qapi: Fix qcow2 encryption doc typo, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 14/14] configure: improve usbfs check, Laurent Vivier, 2019/02/14
- [Qemu-trivial] [PULL 10/14] kvm: Add kvm_set_ioeventfd* traces, Laurent Vivier, 2019/02/14
- Re: [Qemu-trivial] [Qemu-devel] [PULL 00/14] Trivial branch patches, Peter Maydell, 2019/02/14