[Spice-commits] vdagent/desktop_layout.cpp

Frediano Ziglio fziglio at kemper.freedesktop.org
Mon Jul 24 16:19:01 UTC 2017

 vdagent/desktop_layout.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 8512940e534ad090a9e66a8ecde4e6f243691e0d
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Mon Jul 24 16:38:24 2017 +0100

    fix format string for Visual Studio
    The "z" size specifier is not supported by Visual Studio.
    Cast to unsigned long and use "l" specifier as the type has
    enough precision for this vector.
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/vdagent/desktop_layout.cpp b/vdagent/desktop_layout.cpp
index 11ad009..a10d898 100644
--- a/vdagent/desktop_layout.cpp
+++ b/vdagent/desktop_layout.cpp
@@ -147,7 +147,8 @@ void DesktopLayout::set_displays()
         if (display_id >= _displays.size()) {
-            vd_printf("display_id %lu out of range, #displays %zu" , display_id, _displays.size());
+            vd_printf("display_id %lu out of range, #displays %lu",
+                      display_id, (unsigned long) _displays.size());
         DisplayMode * mode(_displays.at(display_id));

More information about the Spice-commits mailing list