diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-11-08 01:12:55 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2010-11-24 02:34:12 +0100 |
commit | bb12b6b05f131637c400c042a2c3f4ee5d596c8b (patch) | |
tree | 5454461b0dc22f72ad34b910b63d41d7c474b975 /gtk/channel-cursor.c | |
parent | cd88cdc6cb890d5d5deb9ce4ff9ff902dc5791d2 (diff) |
gtk: use g_log functions instead of fprintf and custom handler
Diffstat (limited to 'gtk/channel-cursor.c')
-rw-r--r-- | gtk/channel-cursor.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk/channel-cursor.c b/gtk/channel-cursor.c index 0d6afca..a317961 100644 --- a/gtk/channel-cursor.c +++ b/gtk/channel-cursor.c @@ -169,11 +169,9 @@ static display_cursor *set_cursor(SpiceChannel *channel, SpiceCursor *scursor) display_cursor *cursor; size_t size; -#if 0 - fprintf(stderr, "%s: type %d, %" PRIx64 ", %dx%d, flags %d, size %d\n", + g_debug("%s: type %d, %" PRIx64 ", %dx%d, flags %d, size %d", __FUNCTION__, hdr->type, hdr->unique, hdr->width, hdr->height, scursor->flags, scursor->data_size); -#endif if (scursor->flags & SPICE_CURSOR_FLAGS_FROM_CACHE) { item = cache_find(&c->cursors, hdr->unique); @@ -198,8 +196,8 @@ static display_cursor *set_cursor(SpiceChannel *channel, SpiceCursor *scursor) memcpy(cursor->data, scursor->data, size); break; default: - fprintf(stderr, "%s: unimplemented cursor type %d\n", __FUNCTION__, - hdr->type); + g_warning("%s: unimplemented cursor type %d", __FUNCTION__, + hdr->type); free(cursor); cursor = NULL; break; @@ -285,7 +283,7 @@ static void cursor_handle_hide(SpiceChannel *channel, spice_msg_in *in) static void cursor_handle_trail(SpiceChannel *channel, spice_msg_in *in) { - fprintf(stderr, "%s: TODO\n", __FUNCTION__); + g_warning("%s: TODO", __FUNCTION__); } static void cursor_handle_inval_one(SpiceChannel *channel, spice_msg_in *in) |