[pve-devel] [PATCH v3 qemu 3/3] Remove redundant function definition

Filip Schauer f.schauer at proxmox.com
Mon Aug 7 14:38:53 CEST 2023


Remove the redundant save_snapshot_error function definition and move
the G_GNUC_PRINTF macro into function the declaration.

Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
---
 ...PVE-add-savevm-async-for-background-state-snapshots.patch | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/debian/patches/pve/0017-PVE-add-savevm-async-for-background-state-snapshots.patch b/debian/patches/pve/0017-PVE-add-savevm-async-for-background-state-snapshots.patch
index 3dbbf18..762ba9b 100644
--- a/debian/patches/pve/0017-PVE-add-savevm-async-for-background-state-snapshots.patch
+++ b/debian/patches/pve/0017-PVE-add-savevm-async-for-background-state-snapshots.patch
@@ -142,7 +142,7 @@ new file mode 100644
 index 0000000000..ac1fac6378
 --- /dev/null
 +++ b/migration/savevm-async.c
-@@ -0,0 +1,534 @@
+@@ -0,0 +1,533 @@
 +#include "qemu/osdep.h"
 +#include "migration/channel-savevm-async.h"
 +#include "migration/migration.h"
@@ -275,8 +275,7 @@ index 0000000000..ac1fac6378
 +    return ret;
 +}
 +
-+static void save_snapshot_error(const char *fmt, ...) G_GNUC_PRINTF(1, 2);
-+static void save_snapshot_error(const char *fmt, ...)
++static void G_GNUC_PRINTF(1, 2) save_snapshot_error(const char *fmt, ...)
 +{
 +    va_list ap;
 +    char *msg;
-- 
2.39.2






More information about the pve-devel mailing list