migration/rdma: Use error_report() & friends instead of stderr
commitff4c9194599fff94164e0ffa4b5da968973d0523
authorMarkus Armbruster <armbru@redhat.com>
Thu, 28 Sep 2023 13:20:18 +0000 (28 15:20 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 11 Oct 2023 09:17:04 +0000 (11 11:17 +0200)
tree2587a35e345bad6c021f581aa959c3b5e554b143
parent5cec563d0cc4d2ce4983f31c472f022f9fd57d7a
migration/rdma: Use error_report() & friends instead of stderr

error_report() obeys -msg, reports the current error location if any,
and reports to the current monitor if any.  Reporting to stderr
directly with fprintf() or perror() is wrong, because it loses all
this.

Fix the offenders.  Bonus: resolves a FIXME about problematic use of
errno.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20230928132019.2544702-53-armbru@redhat.com>
migration/rdma.c