[vdagent-win PATCH V3 03/11] vdagent::handle_max_clipboard fix vd_printf format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using unsigned long to print a size_t.
---
 vdagent/vdagent.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp
index aa44383..efce981 100644
--- a/vdagent/vdagent.cpp
+++ b/vdagent/vdagent.cpp
@@ -889,8 +889,8 @@ bool VDAgent::handle_display_config(VDAgentDisplayConfig* display_config, uint32
 bool VDAgent::handle_max_clipboard(VDAgentMaxClipboard *msg, uint32_t size)
 {
     if (size != sizeof(VDAgentMaxClipboard)) {
-        vd_printf("VDAgentMaxClipboard: unexpected msg size %u (expected %u)",
-                  size, sizeof(VDAgentMaxClipboard));
+        vd_printf("VDAgentMaxClipboard: unexpected msg size %u (expected %lu)",
+                  size, (unsigned long)sizeof(VDAgentMaxClipboard));
         return false;
     }
     vd_printf("Set max clipboard size: %d", msg->max);
-- 
1.7.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]