[Spice-devel] [PATCH 4/5] do not compile dump_bitmap if not necessary
Frediano Ziglio
fziglio at redhat.com
Thu Mar 24 08:53:01 UTC 2016
This function is used only for debugging
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/spice-bitmap-utils.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/spice-bitmap-utils.c b/server/spice-bitmap-utils.c
index d13d757..a423ad9 100644
--- a/server/spice-bitmap-utils.c
+++ b/server/spice-bitmap-utils.c
@@ -135,6 +135,7 @@ int spice_bitmap_from_surface_type(uint32_t surface_format)
return 0;
}
+#ifdef DUMP_BITMAP
#define RAM_PATH "/tmp/tmpfs"
static void put_16le(uint8_t **ptr, uint16_t val)
@@ -303,3 +304,4 @@ write_err:
fclose(f);
remove(file_str);
}
+#endif
--
2.5.5
More information about the Spice-devel
mailing list