[PATCH] qemu: monitor: Improve error message when QEMU reply is too large
Jiri Denemark
jdenemar at redhat.com
Mon Jan 20 15:22:49 UTC 2020
On Mon, Jan 20, 2020 at 16:11:49 +0100, Peter Krempa wrote:
> Don't use ERANGE as it doesn't make much sense in the error message.
> Also point out that the reply from qemu was too large which is not
> obvious from the original error:
>
> error: No complete monitor response found in 10485760 bytes: Numerical result out of range
>
> The new message will read:
>
> error: internal error: QEMU monitor reply exceeds buffer size (10485760 bytes)
>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
> src/qemu/qemu_monitor.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Jiri Denemark <jdenemar at redhat.com>
More information about the libvir-list
mailing list