Skip to content
Snippets Groups Projects
Commit 4f69c90a authored by Oliver Bock's avatar Oliver Bock
Browse files

Fixed messages (log_error and log_info don't support varargs)

parent 2d33a52d
No related branches found
No related tags found
No related merge requests found
...@@ -320,7 +320,7 @@ cl_device_type getGlobalDeviceType() ...@@ -320,7 +320,7 @@ cl_device_type getGlobalDeviceType()
void void
notify_callback(const char *errinfo, const void *private_info, size_t cb, void *user_data) notify_callback(const char *errinfo, const void *private_info, size_t cb, void *user_data)
{ {
log_error((char*) "%s\n", errinfo ); printf("ERROR: %s\n", errinfo);
} }
int int
...@@ -377,7 +377,7 @@ int main (int argc, char * const argv[]) { ...@@ -377,7 +377,7 @@ int main (int argc, char * const argv[]) {
err = clGetDeviceInfo(device_ids[i], CL_DEVICE_AVAILABLE, sizeof(cl_bool), &available, NULL); err = clGetDeviceInfo(device_ids[i], CL_DEVICE_AVAILABLE, sizeof(cl_bool), &available, NULL);
if(err) if(err)
{ {
log_error((char*)"Cannot check device availability of device # %d\n", i); printf("ERROR: Cannot check device availability of device # %d\n", i);
} }
if(available) if(available)
...@@ -391,11 +391,11 @@ int main (int argc, char * const argv[]) { ...@@ -391,11 +391,11 @@ int main (int argc, char * const argv[]) {
err = clGetDeviceInfo(device_ids[i], CL_DEVICE_NAME, sizeof(name), name, NULL); err = clGetDeviceInfo(device_ids[i], CL_DEVICE_NAME, sizeof(name), name, NULL);
if(err == CL_SUCCESS) if(err == CL_SUCCESS)
{ {
log_info((char*)"Device %s not available for compute\n", name); printf("INFO: Device %s not available for compute\n", name);
} }
else else
{ {
log_info((char*)"Device # %d not available for compute\n", i); printf("INFO: Device # %d not available for compute\n", i);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment