[libvirt] [PATCH 07/10] conf: virDomainDiskDefIotuneParse: Report malformed number errors
Cole Robinson
crobinso at redhat.com
Tue Apr 12 14:31:29 UTC 2016
On 04/12/2016 09:55 AM, Peter Krempa wrote:
> Rest of the fields of the iotune data structure did not check for
> malformed integers. Use the previously defined macro to extract them
> which will simplify the code and add error reporting.
> ---
> src/conf/domain_conf.c | 50 ++++++++------------------------------------------
> 1 file changed, 8 insertions(+), 42 deletions(-)
>
ACK... we need more of these cleanups, there's way too much boilerplate in the
codebase (he says as he just tried to add an extra 100 with setlocale error
checking :) )
- Cole
More information about the libvir-list
mailing list