summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-07-17 20:39:46 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-07-17 20:45:21 +0200
commitb52c9ddfa862ecd7f774946ed12185384c85a533 (patch)
treee1e0e9090528e608f1d076713754d3e741ebb329 /vdagent
parent3bf46bc2b2a041dcc278a881e5822643a9e4604d (diff)
Fix wrong DWORD print fmt
format '%u' expects argument of type 'unsigned int', but argument 8 has type 'DWORD
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/desktop_layout.cpp2
-rw-r--r--vdagent/vdagent.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/vdagent/desktop_layout.cpp b/vdagent/desktop_layout.cpp
index 26b6b53..ce259e1 100644
--- a/vdagent/desktop_layout.cpp
+++ b/vdagent/desktop_layout.cpp
@@ -273,7 +273,7 @@ bool DesktopLayout::init_dev_mode(LPCTSTR dev_name, DEVMODE* dev_mode, DisplayMo
ret = ChangeDisplaySettingsEx(dev_name, dev_mode, NULL, CDS_UPDATEREGISTRY, NULL);
}
- vd_printf("attach %d", ret);
+ vd_printf("attach %ld", ret);
hdc = CreateDC(dev_name, NULL, NULL, NULL);
}
diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp
index fd084a8..73ca39c 100644
--- a/vdagent/vdagent.cpp
+++ b/vdagent/vdagent.cpp
@@ -705,7 +705,7 @@ bool VDAgent::handle_clipboard(VDAgentClipboard* clipboard, uint32_t size)
if (err == ERROR_NOT_ENOUGH_MEMORY) {
vd_printf("Not enough memory to set clipboard data, size %u bytes", size);
} else {
- vd_printf("SetClipboardData failed: %u", err);
+ vd_printf("SetClipboardData failed: %lu", err);
}
}
fin:
@@ -1200,7 +1200,7 @@ bool VDAgent::init_vio_serial()
_vio_serial = CreateFile(VIOSERIAL_PORT_PATH, GENERIC_READ | GENERIC_WRITE , 0, NULL,
OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
if (_vio_serial == INVALID_HANDLE_VALUE) {
- vd_printf("Failed opening %ls, error %u", VIOSERIAL_PORT_PATH, GetLastError());
+ vd_printf("Failed opening %ls, error %lu", VIOSERIAL_PORT_PATH, GetLastError());
return false;
}
return true;