* Markus Armbruster ([email protected]) wrote:
> A few error messages show numeric errno codes. Use error_setg_errno()
> to show human-readable text instead.
>
> Signed-off-by: Markus Armbruster <[email protected]>
...
> diff --git a/migration/rdma.c b/migration/rdma.c
> index 337b415889..ef4885ef5f 100644
> --- a/migration/rdma.c
> +++ b/migration/rdma.c
> @@ -2349,8 +2349,7 @@ static int qemu_get_cm_event_timeout(RDMAContext *rdma,
> error_setg(errp, "RDMA ERROR: poll cm event timeout");
> return -1;
> } else if (ret < 0) {
> - error_setg(errp, "RDMA ERROR: failed to poll cm event, errno=%i",
> - errno);
> + error_setg_errno(errp, "RDMA ERROR: failed to poll cm event");
Hasn't that lost the errno ?
Dave
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/