summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2014-10-23 09:44:08 -0400
committerUri Lublin <uril@redhat.com>2014-12-30 17:17:24 +0200
commitdd53b1766e80aaa6fcdf593e1e2f6f005704efbd (patch)
treea278363a4242bc991a566c75ca1b0d47a9b6fd27
parent8a28f878b95f1edf28d02542587393382fbe5e2e (diff)
vdagent::handle_max_clipboard fix vd_printf format
Using unsigned long to print a size_t.
-rw-r--r--vdagent/vdagent.cpp4
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);