[Spice-commits] gtk/channel-base.c
Marc-André Lureau
elmarco at kemper.freedesktop.org
Wed Aug 28 08:50:36 PDT 2013
gtk/channel-base.c | 15 ---------------
1 file changed, 15 deletions(-)
New commits:
commit 93165b36df98c174b8ced8e9feba3df6d968665d
Author: Marc-André Lureau <marcandre.lureau at gmail.com>
Date: Wed Aug 28 17:50:22 2013 +0200
Revert "tmp: debug MIGRATE_DATA"
This reverts commit f670e0197c37b2f12518f6d216642f67cdf5de84.
diff --git a/gtk/channel-base.c b/gtk/channel-base.c
index 2537078..dff3024 100644
--- a/gtk/channel-base.c
+++ b/gtk/channel-base.c
@@ -145,17 +145,6 @@ get_msg_handler(SpiceChannel *channel, SpiceMsgIn *in, gpointer data)
*msg = in;
}
-static int64_t checksum(uint8_t *message, uint32_t size)
-{
- uint64_t sum = 0;
- for (; size; --size, ++message) {
- printf("%x ", *message);
- sum += *message;
- }
- printf("\n");
- return sum;
-}
-
/* coroutine context */
G_GNUC_INTERNAL
void spice_channel_handle_migrate(SpiceChannel *channel, SpiceMsgIn *in)
@@ -187,10 +176,6 @@ void spice_channel_handle_migrate(SpiceChannel *channel, SpiceMsgIn *in)
spice_header_get_msg_type(data->header, c->use_mini_header));
return;
}
- g_debug("migrate data messagte, len=%d (psize=%zd), checksum=%ld",
- spice_header_get_msg_size(data->header, c->use_mini_header),
- data->psize,
- checksum(data->data, spice_header_get_msg_size(data->header, c->use_mini_header)));
}
/* swapping channels sockets */
More information about the Spice-commits
mailing list