diff options
author | Kostiantyn Kostiuk <kkostiuk@redhat.com> | 2025-08-25 16:53:11 +0300 |
---|---|---|
committer | Kostiantyn Kostiuk <kkostiuk@redhat.com> | 2025-09-01 14:02:18 +0300 |
commit | edf3780a7dad4658ab7b72ea37e310a2be9b16d3 (patch) | |
tree | bebb69124c646df8484712066e7657ebf3fa28e7 /gdbstub | |
parent | b44c8a6d837ed4e082dd03d79095a4e9141eff5b (diff) | |
download | qemu-edf3780a7dad4658ab7b72ea37e310a2be9b16d3.zip qemu-edf3780a7dad4658ab7b72ea37e310a2be9b16d3.tar.gz qemu-edf3780a7dad4658ab7b72ea37e310a2be9b16d3.tar.bz2 |
qga-vss: Write hex value of error in log
QGA-VSS writes error using error_setg_win32_internal,
which call g_win32_error_message.
g_win32_error_message - translate a Win32 error code
(as returned by GetLastError()) into the corresponding message.
In the same time, we call error_setg_win32_internal with
error codes from different Windows componets like VSS or
Performance monitor that provides different codes and
can't be converted with g_win32_error_message. In this
case, the empty suffix will be returned so error will be
masked.
This commit directly add hex value of error code.
Reproduce:
- Run QGA command: {"execute": "guest-fsfreeze-freeze-list", "arguments": {"mountpoints": ["D:"]}}
QGA error example:
- before changes:
{"error": {"class": "GenericError", "desc": "failed to add D: to snapshot set: "}}
- after changes:
{"error": {"class": "GenericError", "desc": "failed to add D: to snapshot set: Windows error 0x8004230e: "}}
Reviewed-by: Yan Vugenfirer <yvugenfi@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250825135311.138330-1-kkostiuk@redhat.com
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'gdbstub')
0 files changed, 0 insertions, 0 deletions