summaryrefslogtreecommitdiffstats
path: root/src/channel-main.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-06-30 12:25:32 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2015-06-30 14:29:17 -0500
commitad89a42ef27c881b2349714e08b579746f5d26ad (patch)
tree6d0907c6bbb6efa5cd4a032609079e281f036896 /src/channel-main.c
parentdca252cf622ffe38ede19bfe44bbc81c2a4ef289 (diff)
downloadspice-gtk-ad89a42ef27c881b2349714e08b579746f5d26ad.tar.gz
spice-gtk-ad89a42ef27c881b2349714e08b579746f5d26ad.tar.xz
spice-gtk-ad89a42ef27c881b2349714e08b579746f5d26ad.zip
Make monitors config debug output more clear
Indicate whether the monitors config debug output is from sending or receiving new monitors configuration. You can tell this by looking at which channel is involved (main vs display), but making it more explicit is helpful for glancing through logs.
Diffstat (limited to 'src/channel-main.c')
-rw-r--r--src/channel-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/channel-main.c b/src/channel-main.c
index d573758..84161cd 100644
--- a/src/channel-main.c
+++ b/src/channel-main.c
@@ -1076,6 +1076,7 @@ gboolean spice_main_send_monitor_config(SpiceMainChannel *channel)
c->disable_display_align == FALSE)
mon->flags |= VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS;
+ CHANNEL_DEBUG(channel, "sending new monitors config to guest");
j = 0;
for (i = 0; i < SPICE_N_ELEMENTS(c->display); i++) {
if (c->display[i].display_state != DISPLAY_ENABLED) {
@@ -1089,7 +1090,7 @@ gboolean spice_main_send_monitor_config(SpiceMainChannel *channel)
mon->monitors[j].height = c->display[i].height;
mon->monitors[j].x = c->display[i].x;
mon->monitors[j].y = c->display[i].y;
- CHANNEL_DEBUG(channel, "monitor config: #%d %dx%d+%d+%d @ %d bpp", j,
+ CHANNEL_DEBUG(channel, "monitor #%d: %dx%d+%d+%d @ %d bpp", j,
mon->monitors[j].width, mon->monitors[j].height,
mon->monitors[j].x, mon->monitors[j].y,
mon->monitors[j].depth);