diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-01-11 20:50:05 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-01-11 20:57:58 +0100 |
commit | b59e7f21b4c1f186e53d6a111553757b3159d76e (patch) | |
tree | 24e4da5c8ba9e84493051cba6eeee22cdae4b636 /gtk | |
parent | 0b0243c1272fb43197d0effeb5e88b7806153a63 (diff) |
gtk: add some DEBUG related to migration
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/channel-base.c | 6 | ||||
-rw-r--r-- | gtk/channel-display.c | 1 | ||||
-rw-r--r-- | gtk/channel-main.c | 5 | ||||
-rw-r--r-- | gtk/spice-widget.c | 2 |
4 files changed, 9 insertions, 5 deletions
diff --git a/gtk/channel-base.c b/gtk/channel-base.c index 830d902..8b095df 100644 --- a/gtk/channel-base.c +++ b/gtk/channel-base.c @@ -105,8 +105,8 @@ void spice_channel_handle_wait_for_channels(SpiceChannel *channel, spice_msg_in G_GNUC_INTERNAL void spice_channel_handle_migrate(SpiceChannel *channel, spice_msg_in *in) { - /* spice_channel *c = channel->priv; - SpiceMsgMigrate *mig = spice_msg_in_parsed(in); */ + /* spice_channel *c = channel->priv; */ + SpiceMsgMigrate *mig = spice_msg_in_parsed(in); - SPICE_DEBUG("%s TODO", __FUNCTION__); + SPICE_DEBUG("%s: channel %p flags %u", __FUNCTION__, channel, mig->flags); } diff --git a/gtk/channel-display.c b/gtk/channel-display.c index 0c695e8..5a7ee81 100644 --- a/gtk/channel-display.c +++ b/gtk/channel-display.c @@ -524,6 +524,7 @@ static int create_canvas(SpiceChannel *channel, display_surface *surface) spice_display_channel *c = SPICE_DISPLAY_CHANNEL(channel)->priv; if (surface->primary) { + SPICE_DEBUG("display: create primary canvas"); #ifdef HAVE_SYS_SHM_H surface->shmid = shmget(IPC_PRIVATE, surface->size, IPC_CREAT | 0777); if (surface->shmid >= 0) { diff --git a/gtk/channel-main.c b/gtk/channel-main.c index 7267e90..88f1c6e 100644 --- a/gtk/channel-main.c +++ b/gtk/channel-main.c @@ -1038,9 +1038,10 @@ static void main_handle_agent_token(SpiceChannel *channel, spice_msg_in *in) /* coroutine context */ static void main_handle_migrate_begin(SpiceChannel *channel, spice_msg_in *in) { - /* SpiceMsgMainMigrationBegin *mig = spice_msg_in_parsed(in); */ + SpiceMsgMainMigrationBegin *mig = spice_msg_in_parsed(in); - g_warning("%s: TODO", __FUNCTION__); + SPICE_DEBUG("migrate_begin %d %s %d %d", + mig->host_size, mig->host_data, mig->port, mig->sport); } /* coroutine context */ diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c index bc960c9..3a9a3ef 100644 --- a/gtk/spice-widget.c +++ b/gtk/spice-widget.c @@ -1634,6 +1634,8 @@ static void channel_destroy(SpiceSession *s, SpiceChannel *channel, gpointer dat int id; g_object_get(channel, "channel-id", &id, NULL); + SPICE_DEBUG("channel_destroy %d", id); + if (SPICE_IS_MAIN_CHANNEL(channel)) { disconnect_main(display); return; |