[Spice-commits] server/spice-bitmap-utils.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Thu Mar 24 13:12:27 UTC 2016
server/spice-bitmap-utils.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 5e15934dce67bc8f70e0092f20833e6af69b1c02
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Thu Mar 24 08:48:08 2016 +0000
do not compile dump_bitmap if not necessary
This function is used only for debugging
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Victor Toso <victortoso at redhat.com>
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
More information about the Spice-commits
mailing list