Revision: 70011 http://sourceforge.net/p/brlcad/code/70011 Author: vasco_costa Date: 2017-07-28 06:16:10 +0000 (Fri, 28 Jul 2017) Log Message: ----------- Fix bugs in log function.
Modified Paths: -------------- brlcad/branches/opencl/src/librt/primitives/primitive_util.c Modified: brlcad/branches/opencl/src/librt/primitives/primitive_util.c =================================================================== --- brlcad/branches/opencl/src/librt/primitives/primitive_util.c 2017-07-28 06:09:16 UTC (rev 70010) +++ brlcad/branches/opencl/src/librt/primitives/primitive_util.c 2017-07-28 06:16:10 UTC (rev 70011) @@ -772,7 +772,7 @@ cl_int error; if (nregions != 0) { - bu_log("OCLRegions:\t%ld regions\n\t%.2f KB regions, %.2f KB mtls\n", (sizeof(struct cl_bool_region)*nregions)/1024.0, (sizeof(*mtls)*nregions)/1024.0); + bu_log("OCLRegions:\t%ld regions\n\t%.2f KB regions, %.2f KB mtls\n", nregions, (sizeof(*regions)*nregions)/1024.0, (sizeof(*mtls)*nregions)/1024.0); clt_db_bool_regions = clCreateBuffer(clt_context, CL_MEM_READ_ONLY|CL_MEM_HOST_WRITE_ONLY|CL_MEM_COPY_HOST_PTR, sizeof(struct cl_bool_region)*nregions, regions, &error); if (error != CL_SUCCESS) bu_bomb("failed to create OpenCL boolean regions buffer"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits