diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2015-07-29 14:50:17 +0200 |
---|---|---|
committer | Pavel Grunt <pgrunt@redhat.com> | 2015-07-29 22:50:06 +0200 |
commit | 39b0ce009ee5b7a335e5c6690617c6f3dc037615 (patch) | |
tree | 2a3c200e16f7d04859dc47be90d1f64d8423e4e9 | |
parent | c8250d0edbac39ce139df2bd3a574d90c7e8055e (diff) | |
download | virt-viewer-39b0ce009ee5b7a335e5c6690617c6f3dc037615.tar.gz virt-viewer-39b0ce009ee5b7a335e5c6690617c6f3dc037615.tar.xz virt-viewer-39b0ce009ee5b7a335e5c6690617c6f3dc037615.zip |
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.
-rw-r--r-- | src/virt-viewer-session-spice.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |