From ad89a42ef27c881b2349714e08b579746f5d26ad Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Tue, 30 Jun 2015 12:25:32 -0500 Subject: 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. --- src/channel-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/channel-main.c') 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); -- cgit