[Bug 79246] Make failed when uncommented COMPRESS_STAT in red_worker.c

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 26 00:12:57 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=79246

--- Comment #1 from Qiang Wang <wangqiang.hunan at gmail.com> ---
This error because of some simple syntax errors.
So a add this patch

Signed-off-by: Wang Qiang <wangqiang.hunan at gmail.com>
---
 server/red_worker.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 1871e13..6e4ba54 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -257,7 +257,7 @@ static inline void stat_compress_add(stat_info_t *info,
stat_time_t start, int o
     info->comp_size += comp_size;
 }

-double inline stat_byte_to_mega(uint64_t size)
+static inline double stat_byte_to_mega(uint64_t size)
 {
     return (double)size / (1000 * 1000);
 }
@@ -1152,7 +1152,7 @@ static void print_compress_stats(DisplayChannel
*display_channel)
                        display_channel->zlib_glz_stat.comp_size :
                        display_channel->glz_stat.comp_size;

-    spice_info("==> Compression stats for display %u",
display_channel->common.id);
+    spice_info("==> Compression stats for display %u",
display_channel->common.base.id);
     spice_info("Method   \t  count 
\torig_size(MB)\tenc_size(MB)\tenc_time(s)");
     spice_info("QUIC     \t%8d\t%13.2f\t%12.2f\t%12.2f",
                display_channel->quic_stat.count,
-- 
1.9.1

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-bugs/attachments/20140526/1b210fc2/attachment.html>


More information about the spice-bugs mailing list