[Spice-devel] [PATCH spice-gtk 3/3] Lower or silence some harmless debug messages
Marc-André Lureau
marcandre.lureau at gmail.com
Fri Feb 3 02:28:42 PST 2012
---
gtk/decode-glz.c | 2 --
gtk/spice-channel.c | 6 +++---
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/gtk/decode-glz.c b/gtk/decode-glz.c
index fb6ecc9..4033480 100644
--- a/gtk/decode-glz.c
+++ b/gtk/decode-glz.c
@@ -142,8 +142,6 @@ static gboolean wait_for_image(gpointer data)
struct glz_image *image = wait->window->images[slot];
gboolean ready = image && image->hdr.id == wait->id;
- SPICE_DEBUG("image with slot %d: %s", slot, ready ? "yes" : "no");
-
return ready;
}
diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index bdfb02b..f20e8e6 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -1055,14 +1055,14 @@ static void spice_channel_recv_auth(SpiceChannel *channel)
rc = spice_channel_read(channel, &link_res, sizeof(link_res));
if (rc != sizeof(link_res)) {
- g_critical("incomplete auth reply (%d/%" G_GSIZE_FORMAT ")",
- rc, sizeof(link_res));
+ SPICE_DEBUG("incomplete auth reply (%d/%" G_GSIZE_FORMAT ")",
+ rc, sizeof(link_res));
emit_main_context(channel, SPICE_CHANNEL_EVENT, SPICE_CHANNEL_ERROR_LINK);
return;
}
if (link_res != SPICE_LINK_ERR_OK) {
- g_critical("link result: reply %d", link_res);
+ SPICE_DEBUG("link result: reply %d", link_res);
emit_main_context(channel, SPICE_CHANNEL_EVENT, SPICE_CHANNEL_ERROR_AUTH);
return;
}
--
1.7.7.6
More information about the Spice-devel
mailing list