dump/win_dump: Improve error messages on write error
commit21c06f57808c7236cca68ccc7d8df845c22cd998
authorMarkus Armbruster <armbru@redhat.com>
Mon, 13 May 2024 14:16:59 +0000 (13 16:16 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 May 2024 10:42:12 +0000 (27 12:42 +0200)
tree1fa8524b8472c53b462dc870b610a137a6a089b5
parent540d91b40c390faa565e613a85bc0950ca7e0775
dump/win_dump: Improve error messages on write error

create_win_dump() and write_run report qemu_write_full() failure to
their callers as

    An IO error has occurred

The errno set by qemu_write_full() is lost.

Improve this to

    win-dump: failed to write header: <description of errno>

and

    win-dump: failed to save memory: <description of errno>

This matches how dump.c reports similar errors.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240513141703.549874-3-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
dump/win_dump.c