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.
This commit is contained in:
Charlie Fenton 2014-09-15 04:41:09 -07:00
parent ce0efae3bb
commit 8827710c29
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ void OPENCL_DEVICE_PROP::write_xml(MIOFILE& f, const char* tag, bool temp_file)
" <%s>\n"
" <name>%s</name>\n"
" <vendor>%s</vendor>\n"
" <vendor_id>%lu</vendor_id>\n"
" <vendor_id>%u</vendor_id>\n"
" <available>%d</available>\n"
" <half_fp_config>%llu</half_fp_config>\n"
" <single_fp_config>%llu</single_fp_config>\n"
@ -58,8 +58,8 @@ void OPENCL_DEVICE_PROP::write_xml(MIOFILE& f, const char* tag, bool temp_file)
" <extensions>%s</extensions>\n"
" <global_mem_size>%llu</global_mem_size>\n"
" <local_mem_size>%llu</local_mem_size>\n"
" <max_clock_frequency>%lu</max_clock_frequency>\n"
" <max_compute_units>%lu</max_compute_units>\n"
" <max_clock_frequency>%u</max_clock_frequency>\n"
" <max_compute_units>%u</max_compute_units>\n"
" <opencl_platform_version>%s</opencl_platform_version>\n"
" <opencl_device_version>%s</opencl_device_version>\n"
" <opencl_driver_version>%s</opencl_driver_version>\n",