Re: [PATCH v7 02/11] error: auto propagated local_err

2020-02-21 Thread Eric Blake
On 2/21/20 3:42 AM, Vladimir Sementsov-Ogievskiy wrote: +#define ERRP_AUTO_PROPAGATE()  \ +    g_auto(ErrorPropagator) _auto_errp_prop = {.errp = errp};  \ +    errp = ((errp == NULL || *errp == error_fatal) \ +    ? &_auto_errp_prop.local_err

Re: [PATCH v7 02/11] error: auto propagated local_err

2020-02-21 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > 21.02.2020 12:19, Markus Armbruster wrote: >> Vladimir Sementsov-Ogievskiy writes: >> >>> Here is introduced ERRP_AUTO_PROPAGATE macro, to be used at start of >>> functions with an errp OUT parameter. >>> >>> It has three goals: >>> >>> 1. Fix issue with er

Re: [PATCH v7 02/11] error: auto propagated local_err

2020-02-21 Thread Vladimir Sementsov-Ogievskiy
21.02.2020 12:19, Markus Armbruster wrote: Vladimir Sementsov-Ogievskiy writes: Here is introduced ERRP_AUTO_PROPAGATE macro, to be used at start of functions with an errp OUT parameter. It has three goals: 1. Fix issue with error_fatal and error_prepend/error_append_hint: user can't see thi

Re: [PATCH v7 02/11] error: auto propagated local_err

2020-02-21 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > Here is introduced ERRP_AUTO_PROPAGATE macro, to be used at start of > functions with an errp OUT parameter. > > It has three goals: > > 1. Fix issue with error_fatal and error_prepend/error_append_hint: user > can't see this additional information, because