Re: [PATCH 1/7] vhost: Add Error parameter to vhost_dev_init()

2021-06-11 Thread Raphael Norwitz
On Wed, Jun 09, 2021 at 05:46:52PM +0200, Kevin Wolf wrote: > This allows callers to return better error messages instead of making > one up while the real error ends up on stderr. Most callers can > immediately make use of this because they already have an Error > parameter themselves. The others

Re: [PATCH 1/7] vhost: Add Error parameter to vhost_dev_init()

2021-06-10 Thread Stefano Garzarella
On Wed, Jun 09, 2021 at 05:46:52PM +0200, Kevin Wolf wrote: This allows callers to return better error messages instead of making one up while the real error ends up on stderr. Most callers can immediately make use of this because they already have an Error parameter themselves. The others just k

[PATCH 1/7] vhost: Add Error parameter to vhost_dev_init()

2021-06-09 Thread Kevin Wolf
This allows callers to return better error messages instead of making one up while the real error ends up on stderr. Most callers can immediately make use of this because they already have an Error parameter themselves. The others just keep printing the error with error_report_err(). Signed-off-by