Re: [PULL 2/6] qemu_img: add cvtnum_full to print error reports

2020-05-20 Thread Eric Blake
On 5/18/20 11:32 AM, Eric Blake wrote: From: Eyal Moscovici All calls to cvtnum check the return value and print the same error message more or less. And so error reporting moved to cvtnum_full to reduce code duplication and provide a single error message. Additionally, cvtnum now wraps cvtnum_

[PULL 2/6] qemu_img: add cvtnum_full to print error reports

2020-05-18 Thread Eric Blake
From: Eyal Moscovici All calls to cvtnum check the return value and print the same error message more or less. And so error reporting moved to cvtnum_full to reduce code duplication and provide a single error message. Additionally, cvtnum now wraps cvtnum_full with the existing default range of 0