Use correct format for unsigned long

This commit is contained in:
Brian Sumner
2017-02-16 08:12:13 -08:00
committed by Kévin Petit
parent c4ea18523b
commit d4c7d6dbcd

View File

@@ -455,7 +455,7 @@ size_t getBufferSize(cl_device_id device_id)
}
if (result > BUFFER_SIZE)
result = BUFFER_SIZE;
log_info("Using const buffer size 0x%lx (%ld)\n", (unsigned long)result, (unsigned long)result);
log_info("Using const buffer size 0x%lx (%lu)\n", (unsigned long)result, (unsigned long)result);
err = clGetDeviceInfo (device_id,
CL_DEVICE_GLOBAL_MEM_SIZE,
sizeof(maxGlobalSize), (void *)&maxGlobalSize,