Commit 27bcad1f authored by Oliver Bock's avatar Oliver Bock
Browse files

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

parent 6abc5466
...@@ -690,7 +690,7 @@ cl_device_type getGlobalDeviceType() ...@@ -690,7 +690,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( "%s\n", errinfo ); printf( "ERROR: %s\n", errinfo );
} }
int int
...@@ -771,7 +771,7 @@ int main (int argc, char * const argv[]) { ...@@ -771,7 +771,7 @@ int main (int argc, char * const argv[]) {
cl_bool available; cl_bool available;
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("Cannot check device availability of device # %d. Continuing with next available device...\n", i); printf("ERROR: Cannot check device availability of device # %d. Continuing with next available device...\n", i);
continue; continue;
} }
...@@ -783,10 +783,10 @@ int main (int argc, char * const argv[]) { ...@@ -783,10 +783,10 @@ int main (int argc, char * const argv[]) {
char name[200]; char name[200];
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("Device %s not available for compute\n", name); printf("INFO: Device %s not available for compute\n", name);
} }
else { else {
log_info("Device # %d not available for compute\n", i); printf("INFO: Device # %d not available for compute\n", i);
} }
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment