summaryrefslogtreecommitdiff
path: root/vdagent/desktop_layout.cpp
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-02-19 23:10:00 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-02-23 19:03:25 +0100
commitdf3fe9cb90aaeb30f029428cf9030e2526768d08 (patch)
treea7250baaee9b274e28c9b1853dd7db232911a861 /vdagent/desktop_layout.cpp
parent8ca8687fcc29e4c70ec196c3e892b2d58ea704f0 (diff)
mingw: fix format string warnings
Most of them are caused by not using %lu to print a DWORD (which is an unsigned long).
Diffstat (limited to 'vdagent/desktop_layout.cpp')
-rw-r--r--vdagent/desktop_layout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdagent/desktop_layout.cpp b/vdagent/desktop_layout.cpp
index 0ba7248..f880fd3 100644
--- a/vdagent/desktop_layout.cpp
+++ b/vdagent/desktop_layout.cpp
@@ -112,14 +112,14 @@ void DesktopLayout::set_displays()
break;
}
if (display_id >= _displays.size()) {
- vd_printf("display_id %u out of range, #displays %u", display_id, _displays.size());
+ vd_printf("display_id %lu out of range, #displays %u", display_id, _displays.size());
break;
}
if (!init_dev_mode(dev_info.DeviceName, &dev_mode, _displays.at(display_id), true)) {
vd_printf("No suitable mode found for display %S", dev_info.DeviceName);
break;
}
- vd_printf("Set display mode %ux%u", dev_mode.dmPelsWidth, dev_mode.dmPelsHeight);
+ vd_printf("Set display mode %lux%lu", dev_mode.dmPelsWidth, dev_mode.dmPelsHeight);
LONG ret = ChangeDisplaySettingsEx(dev_info.DeviceName, &dev_mode, NULL,
CDS_UPDATEREGISTRY | CDS_NORESET, NULL);
if (ret == DISP_CHANGE_SUCCESSFUL) {