]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/cpr: Clean up error reporting in cpr_resave_fd()
authorMarkus Armbruster <armbru@redhat.com>
Tue, 23 Sep 2025 09:09:51 +0000 (11:09 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 30 Sep 2025 12:43:53 +0000 (14:43 +0200)
commit897071bb27bfba578af15300973b7a4a1fb65ad2
tree57f648de6519b0c3d8bab0526e75f4414d08a6b0
parentb8df7dfc04a88228a6bf35530c10b1326f5cb6d6
migration/cpr: Clean up error reporting in cpr_resave_fd()

qapi/error.h advises:

 * Please don't error_setg(&error_fatal, ...), use error_report() and
 * exit(), because that's more obvious.

Do that, and replace exit() by g_assert_not_reached(), since this is
actually a programming error.

Cc: Steve Sistare <steven.sistare@oracle.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Steve Sistare <steven.sistare@oracle.com>
Message-ID: <20250923091000.3180122-5-armbru@redhat.com>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
migration/cpr.c