[Spice-devel] [PATCH spice 3/3] Fix -Werror=format with DEBUG_ENCODE
Pavel Grunt
pgrunt at redhat.com
Thu Jun 30 09:17:50 UTC 2016
---
server/glz-encode.tmpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/glz-encode.tmpl.c b/server/glz-encode.tmpl.c
index d699499..4874a94 100644
--- a/server/glz-encode.tmpl.c
+++ b/server/glz-encode.tmpl.c
@@ -365,7 +365,7 @@ static void FNAME(compress_seg)(Encoder *encoder, uint32_t seg_idx, PIXEL *from,
match: // RLE or dictionary (both are encoded by distance from ref (-1) and length)
#ifdef DEBUG_ENCODE
- printf(", match(%d, %d, %d)", image_dist, pix_dist, len);
+ printf(", match(%zu, %zu, %zu)", image_dist, pix_dist, len);
n_encoded += len;
#endif
--
2.9.0
More information about the Spice-devel
mailing list