]> git.proxmox.com Git - mirror_qemu.git/commitdiff
QGA VSS: Print error in err_set
authorKonstantin Kostiuk <kkostiuk@redhat.com>
Mon, 10 Jul 2023 09:14:38 +0000 (12:14 +0300)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Mon, 10 Jul 2023 12:54:40 +0000 (15:54 +0300)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/vss-win32/requester.cpp

index e85b9bc633794f051eb45c443dcdb7de70c8006c..f3eafacfc1574cfbd67e0e5e31f5c4e0e82a7136 100644 (file)
 
 #define DEFAULT_VSS_BACKUP_TYPE VSS_BT_FULL
 
-#define err_set(e, err, fmt, ...)                                           \
-    ((e)->error_setg_win32_wrapper((e)->errp, __FILE__, __LINE__, __func__, \
-                                   err, fmt, ## __VA_ARGS__))
+#define err_set(e, err, fmt, ...) {                                         \
+    (e)->error_setg_win32_wrapper((e)->errp, __FILE__, __LINE__, __func__,  \
+                                   err, fmt, ## __VA_ARGS__);               \
+    qga_debug(fmt, ## __VA_ARGS__);                                         \
+}
 /* Bad idea, works only when (e)->errp != NULL: */
 #define err_is_set(e) ((e)->errp && *(e)->errp)
 /* To lift this restriction, error_propagate(), like we do in QEMU code */