Re: [Qemu-devel] [PATCH v2 01/10] error: New convenience function error_report_err()

2015-02-13 Thread Markus Armbruster
Eric Blake writes: > On 02/12/2015 06:33 AM, Markus Armbruster wrote: >> I've typed error_report("%s", error_get_pretty(ERR)) too many times >> already, and I've fixed too many instances of qerror_report_err(ERR) >> to error_report("%s", error_get_pretty(ERR)) as well. Capture the >> pattern in

Re: [Qemu-devel] [PATCH v2 01/10] error: New convenience function error_report_err()

2015-02-12 Thread Eric Blake
On 02/12/2015 06:33 AM, Markus Armbruster wrote: > I've typed error_report("%s", error_get_pretty(ERR)) too many times > already, and I've fixed too many instances of qerror_report_err(ERR) > to error_report("%s", error_get_pretty(ERR)) as well. Capture the > pattern in a convenience function. >

[Qemu-devel] [PATCH v2 01/10] error: New convenience function error_report_err()

2015-02-12 Thread Markus Armbruster
I've typed error_report("%s", error_get_pretty(ERR)) too many times already, and I've fixed too many instances of qerror_report_err(ERR) to error_report("%s", error_get_pretty(ERR)) as well. Capture the pattern in a convenience function. Since it's almost invariably followed by error_free(), stuf