[virt-tools-list] [PATCH virt-viewer] session-spice: Use display id instead of monitor id in debug log

Pavel Grunt pgrunt at redhat.com
Wed Jul 29 13:06:44 UTC 2015


Windows guests have monitor id = 0, so the debug log is always the same:
"creating spice display (#:0)" for all the displays.
---
 src/virt-viewer-session-spice.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index 9976291..1649a62 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -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));
-- 
2.4.6




More information about the virt-tools-list mailing list