summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-07-17 20:49:01 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-07-17 20:49:19 +0200
commitfc1de85b499759576fa52dfd20496bfb887c8295 (patch)
tree2cb1ccd442389164c95a268cf9afb7a1bbace468 /vdagent
parent492ee05a6bd92acc94557a129cd609d66785dac2 (diff)
Fix wrong size_t printf format
vdagent/desktop_layout.cpp:121:763: warning: format '%u' expects argument of type 'unsigned int', but argument 8 has type 'std::vector<DisplayMode*>::size_type {aka long long unsigned int}' [-Wformat=]
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/desktop_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagent/desktop_layout.cpp b/vdagent/desktop_layout.cpp
index ce259e1..7850e6d 100644
--- a/vdagent/desktop_layout.cpp
+++ b/vdagent/desktop_layout.cpp
@@ -118,7 +118,7 @@ void DesktopLayout::set_displays()
break;
}
if (display_id >= _displays.size()) {
- vd_printf("display_id %lu out of range, #displays %u", display_id, _displays.size());
+ vd_printf("display_id %lu out of range, #displays %zu" , display_id, _displays.size());
break;
}
if (!init_dev_mode(dev_info.DeviceName, &dev_mode, _displays.at(display_id), true)) {