Re: [PATCH 1/5] qemu: don't override earlier json error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23.02.2013 00:09, Eric Blake wrote:
> I built without json support, and noticed a strange failure message
> in qemumonitorjsontest:
> 
> 2013-02-22 16:12:37.503+0000: 19812: error : virJSONValueToString:1119 : internal error No JSON parser implementation is available
> 2013-02-22 16:12:37.503+0000: 19812: error : qemuMonitorJSONCommandWithFd:253 : out of memory
> 
> While a later patch will fix the test to skip when json is not present,
> this patch avoids overriding the more useful error message from
> virJSONValueToString returning NULL.
> 
> * src/qemu/qemu_monitor_json.c (qemuMonitorJSONCommandWithFd):
> Don't override message.
> (qemuMonitorJSONCheckError): Don't print NULL.
> * src/qemu/qemu_agent.c (qemuAgentCommand): Don't override message.
> (qemuAgentCheckError): Don't print NULL.
> (qemuAgentArbitraryCommand): Properly fail on OOM.
> ---
>  src/qemu/qemu_agent.c        | 13 ++++++-------
>  src/qemu/qemu_monitor_json.c |  8 +++-----
>  2 files changed, 9 insertions(+), 12 deletions(-)

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]