[Spice-devel] [spice-server v3 7/8] fixup! Use spice_debug rather than spice_info in library code

Christophe Fergeau cfergeau at redhat.com
Mon Feb 6 17:15:55 UTC 2017


---
 server/display-channel.c | 2 +-
 server/image-encoders.c  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index bb1efe4..f70006f 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -114,7 +114,7 @@ void display_channel_compress_stats_print(DisplayChannel *display_channel)
 
     g_object_get(display_channel, "id", &id, NULL);
 
-    spice_debug("==> Compression stats for display %u", id);
+    spice_info("==> Compression stats for display %u", id);
     image_encoder_shared_stat_print(&display_channel->priv->encoder_shared_data);
 #endif
 }
diff --git a/server/image-encoders.c b/server/image-encoders.c
index 52742ae..bfc93b2 100644
--- a/server/image-encoders.c
+++ b/server/image-encoders.c
@@ -1337,7 +1337,7 @@ void image_encoder_shared_stat_reset(ImageEncoderSharedData *shared_data)
 #ifdef COMPRESS_STAT
 static void stat_print_one(const char *name, const stat_info_t *stat)
 {
-    spice_debug(STAT_FMT, name, stat->count,
+    spice_info(STAT_FMT, name, stat->count,
                stat_byte_to_mega(stat->orig_size),
                stat_byte_to_mega(stat->comp_size),
                stat_cpu_time_to_sec(stat->total));
@@ -1377,7 +1377,7 @@ void image_encoder_shared_stat_print(const ImageEncoderSharedData *shared_data)
                           shared_data->zlib_glz_stat.comp_size;
     }
 
-    spice_debug("Method   \t  count  \torig_size(MB)\tenc_size(MB)\tenc_time(s)");
+    spice_info("Method   \t  count  \torig_size(MB)\tenc_size(MB)\tenc_time(s)");
     stat_print_one("OFF      ", &shared_data->off_stat);
     stat_print_one("QUIC     ", &shared_data->quic_stat);
     stat_print_one("GLZ      ", &shared_data->glz_stat);
@@ -1386,7 +1386,7 @@ void image_encoder_shared_stat_print(const ImageEncoderSharedData *shared_data)
     stat_print_one("JPEG     ", &shared_data->jpeg_stat);
     stat_print_one("JPEG-RGBA", &shared_data->jpeg_alpha_stat);
     stat_print_one("LZ4      ", &shared_data->lz4_stat);
-    spice_debug("-------------------------------------------------------------------");
+    spice_info("-------------------------------------------------------------------");
     stat_print_one("Total    ", &total);
 #endif
 }
-- 
2.9.3



More information about the Spice-devel mailing list