[Spice-devel] [spice-gtk PATCH v1 08/13] log: use spice_debug instead of g_debug
Victor Toso
victortoso at redhat.com
Fri Dec 11 07:54:54 PST 2015
---
src/giopipe.c | 8 ++++----
src/spice-audio.c | 2 +-
src/spice-channel.c | 10 +++++-----
src/spice-session.c | 6 +++---
4 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/giopipe.c b/src/giopipe.c
index d91c4d9..77de1cf 100644
--- a/src/giopipe.c
+++ b/src/giopipe.c
@@ -113,7 +113,7 @@ pipe_input_stream_read (GInputStream *stream,
self->read = count;
self->peer->buffer = NULL;
- //g_debug("read %p :%"G_GSIZE_FORMAT, self->peer, count);
+ //spice_debug("read %p :%"G_GSIZE_FORMAT, self->peer, count);
/* schedule peer source */
pipe_output_stream_check_source(self->peer);
@@ -240,7 +240,7 @@ pipe_input_stream_is_readable (GPollableInputStream *stream)
gboolean readable;
readable = (self->peer && self->peer->buffer && self->read == -1) || self->peer_closed;
- //g_debug("readable %p %d", self->peer, readable);
+ //spice_debug("readable %p %d", self->peer, readable);
return readable;
}
@@ -281,7 +281,7 @@ pipe_output_stream_write (GOutputStream *stream,
PipeOutputStream *self = PIPE_OUTPUT_STREAM(stream);
PipeInputStream *peer = self->peer;
- //g_debug("write %p :%"G_GSIZE_FORMAT, stream, count);
+ //spice_debug("write %p :%"G_GSIZE_FORMAT, stream, count);
if (g_output_stream_is_closed (stream) || self->peer_closed) {
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_CLOSED,
"Stream is already closed");
@@ -413,7 +413,7 @@ pipe_output_stream_is_writable (GPollableOutputStream *stream)
gboolean writable;
writable = self->buffer == NULL || self->peer->read >= 0;
- //g_debug("writable %p %d", self, writable);
+ //spice_debug("writable %p %d", self, writable);
return writable;
}
diff --git a/src/spice-audio.c b/src/spice-audio.c
index 75742d7..a494627 100644
--- a/src/spice-audio.c
+++ b/src/spice-audio.c
@@ -169,7 +169,7 @@ static void update_audio_channels(SpiceAudio *self, SpiceSession *session)
GList *list, *tmp;
if (!spice_session_get_audio_enabled(session)) {
- g_debug("FIXME: disconnect audio channels");
+ spice_debug("FIXME: disconnect audio channels");
return;
}
diff --git a/src/spice-channel.c b/src/spice-channel.c
index 29e7009..e44088a 100644
--- a/src/spice-channel.c
+++ b/src/spice-channel.c
@@ -2034,7 +2034,7 @@ SpiceChannel *spice_channel_new(SpiceSession *s, int type, int id)
case SPICE_CHANNEL_PLAYBACK:
case SPICE_CHANNEL_RECORD: {
if (!spice_session_get_audio_enabled(s)) {
- g_debug("audio channel is disabled, not creating it");
+ spice_debug("audio channel is disabled, not creating it");
return NULL;
}
gtype = type == SPICE_CHANNEL_RECORD ?
@@ -2044,7 +2044,7 @@ SpiceChannel *spice_channel_new(SpiceSession *s, int type, int id)
#ifdef USE_SMARTCARD
case SPICE_CHANNEL_SMARTCARD: {
if (!spice_session_get_smartcard_enabled(s)) {
- g_debug("smartcard channel is disabled, not creating it");
+ spice_debug("smartcard channel is disabled, not creating it");
return NULL;
}
gtype = SPICE_TYPE_SMARTCARD_CHANNEL;
@@ -2054,7 +2054,7 @@ SpiceChannel *spice_channel_new(SpiceSession *s, int type, int id)
#ifdef USE_USBREDIR
case SPICE_CHANNEL_USBREDIR: {
if (!spice_session_get_usbredir_enabled(s)) {
- g_debug("usbredir channel is disabled, not creating it");
+ spice_debug("usbredir channel is disabled, not creating it");
return NULL;
}
gtype = SPICE_TYPE_USBREDIR_CHANNEL;
@@ -2071,8 +2071,8 @@ SpiceChannel *spice_channel_new(SpiceSession *s, int type, int id)
gtype = SPICE_TYPE_PORT_CHANNEL;
break;
default:
- g_debug("unsupported channel kind: %s: %d",
- spice_channel_type_to_string(type), type);
+ spice_debug("unsupported channel kind: %s: %d",
+ spice_channel_type_to_string(type), type);
return NULL;
}
channel = SPICE_CHANNEL(g_object_new(gtype,
diff --git a/src/spice-session.c b/src/spice-session.c
index e011a47..24696de 100644
--- a/src/spice-session.c
+++ b/src/spice-session.c
@@ -2178,8 +2178,8 @@ GSocketConnection* spice_session_channel_open_host(SpiceSession *session, SpiceC
} else {
port = *use_tls ? s->tls_port : s->port;
if (port == NULL) {
- g_debug("Missing port value, not attempting %s connection.",
- *use_tls?"TLS":"unencrypted");
+ spice_debug("Missing port value, not attempting %s connection.",
+ *use_tls?"TLS":"unencrypted");
return NULL;
}
@@ -2730,7 +2730,7 @@ PhodavServer* spice_session_get_webdav_server(SpiceSession *session)
const gchar *shared_dir = spice_session_get_shared_dir(session);
if (shared_dir == NULL) {
- g_debug("No shared dir set, not creating webdav server");
+ spice_debug("No shared dir set, not creating webdav server");
return NULL;
}
--
2.5.0
More information about the Spice-devel
mailing list