migration/rdma: rdma_accept_incoming_migration fix error handling
commit2a1bc8bde7cc42ea8bf5d52c7c9a7774fde0edcd
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 10 Feb 2020 19:44:59 +0000 (10 19:44 +0000)
committerJuan Quintela <quintela@redhat.com>
Thu, 13 Feb 2020 09:55:55 +0000 (13 10:55 +0100)
tree2bb0ef13cd32dd5508dbaf11cbdff2ed75b44b3d
parentd05de9e39a5fb5582a875a95c4b9c2c8584ea694
migration/rdma: rdma_accept_incoming_migration fix error handling

rdma_accept_incoming_migration is called from an fd handler and
can't return an Error * anywhere.
Currently it's leaking Error's in errp/local_err - there's
no point putting them in there unless we can report them.

Turn most into fprintf's, and the last into an error_reportf_err
where it's coming up from another function.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/rdma.c