summary refs log tree commit diff stats
path: root/qga/commands-win32.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2024-05-13 16:16:59 +0200
committerMarkus Armbruster <armbru@redhat.com>2024-05-27 12:42:12 +0200
commit21c06f57808c7236cca68ccc7d8df845c22cd998 (patch)
tree1fa8524b8472c53b462dc870b610a137a6a089b5 /qga/commands-win32.c
parent540d91b40c390faa565e613a85bc0950ca7e0775 (diff)
downloadfocaccia-qemu-21c06f57808c7236cca68ccc7d8df845c22cd998.tar.gz
focaccia-qemu-21c06f57808c7236cca68ccc7d8df845c22cd998.zip
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>
Diffstat (limited to 'qga/commands-win32.c')
0 files changed, 0 insertions, 0 deletions