session-spice: Use display id instead of monitor id in debug log

Windows guests have monitor id = 0, so the debug log is always the same:
"creating spice display (#:0)" for all the displays.
This commit is contained in:
Pavel Grunt 2015-07-29 14:50:17 +02:00
parent c8250d0edb
commit 39b0ce009e

View File

@ -796,7 +796,8 @@ virt_viewer_session_spice_display_monitors(SpiceChannel *channel,
display = g_ptr_array_index(displays, i);
if (display == NULL) {
display = virt_viewer_display_spice_new(self, channel, i);
g_debug("creating spice display (#:%d)", i);
g_debug("creating spice display (#:%d)",
virt_viewer_display_get_nth(VIRT_VIEWER_DISPLAY(display)));
g_ptr_array_index(displays, i) = g_object_ref_sink(display);
virt_viewer_session_add_display(VIRT_VIEWER_SESSION(self),
VIRT_VIEWER_DISPLAY(display));