From 8827710c29e30e93c5a8ce7217849c25a44d082f Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 15 Sep 2014 04:41:09 -0700 Subject: [PATCH] client: fix incorrect format specifier when writing out OpenCL items which have size cl_uint. - This caused garbage to be written by Mac x86_64 clients. - It now works correctly for 32-bit and 64-bit Windows clients, but needs to be tested for Linux clients. --- lib/opencl_boinc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/opencl_boinc.cpp b/lib/opencl_boinc.cpp index c4d0982ccd..bb828a4d07 100644 --- a/lib/opencl_boinc.cpp +++ b/lib/opencl_boinc.cpp @@ -48,7 +48,7 @@ void OPENCL_DEVICE_PROP::write_xml(MIOFILE& f, const char* tag, bool temp_file) " <%s>\n" " %s\n" " %s\n" - " %lu\n" + " %u\n" " %d\n" " %llu\n" " %llu\n" @@ -58,8 +58,8 @@ void OPENCL_DEVICE_PROP::write_xml(MIOFILE& f, const char* tag, bool temp_file) " %s\n" " %llu\n" " %llu\n" - " %lu\n" - " %lu\n" + " %u\n" + " %u\n" " %s\n" " %s\n" " %s\n",