diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2013-07-26 12:15:00 -0400 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2013-07-29 11:35:17 -0400 |
commit | c2e46b926e0ee4226f0f93942e7fa2c5b409f73d (patch) | |
tree | 35f445b96a3b94d27b2084f204b57b29477ffb51 /server/snd_worker.c | |
parent | 02f44c137df99ed2e89699e49b64c13673b0cd06 (diff) | |
download | spice-c2e46b926e0ee4226f0f93942e7fa2c5b409f73d.tar.gz spice-c2e46b926e0ee4226f0f93942e7fa2c5b409f73d.tar.xz spice-c2e46b926e0ee4226f0f93942e7fa2c5b409f73d.zip |
log: improve debug information related to client disconnection
Diffstat (limited to 'server/snd_worker.c')
-rw-r--r-- | server/snd_worker.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/snd_worker.c b/server/snd_worker.c index 3827416c..ebddfcd9 100644 --- a/server/snd_worker.c +++ b/server/snd_worker.c @@ -201,8 +201,8 @@ static SndChannel *snd_channel_get(SndChannel *channel) static SndChannel *snd_channel_put(SndChannel *channel) { if (!--channel->refs) { + spice_printerr("SndChannel=%p freed", channel); free(channel); - spice_printerr("sound channel freed"); return NULL; } return channel; @@ -216,7 +216,8 @@ static void snd_disconnect_channel(SndChannel *channel) spice_debug("not connected"); return; } - spice_debug("%p", channel); + spice_debug("SndChannel=%p rcc=%p type=%d", + channel, channel->channel_client, channel->channel_client->channel->type); worker = channel->worker; channel->cleanup(channel); red_channel_client_disconnect(worker->connection->channel_client); @@ -976,11 +977,11 @@ static void snd_disconnect_channel_client(RedChannelClient *rcc) { SndWorker *worker; - spice_debug(NULL); spice_assert(rcc->channel); spice_assert(rcc->channel->data); worker = (SndWorker *)rcc->channel->data; + spice_debug("channel-type=%d", rcc->channel->type); if (worker->connection) { spice_assert(worker->connection->channel_client == rcc); snd_disconnect_channel(worker->connection); |