Summary: | Make failed when uncommented COMPRESS_STAT in red_worker.c | ||
---|---|---|---|
Product: | Spice | Reporter: | Qiang Wang <wangqiang.hunan> |
Component: | server | Assignee: | Spice Bug List <spice-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Qiang Wang
2014-05-26 06:47:17 UTC
This error because of some simple syntax errors. So a add this patch Signed-off-by: Wang Qiang <wangqiang.hunan@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 Thanks for the patch, pushed to git master: http://cgit.freedesktop.org/spice/spice/commit/?id=e7db94d833e848b63fdd9956ba51ce2c5917cb25 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.