mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 00:09:02 +00:00
Fix -Wformat-extra-args warnings (#1533)
Fix a few instances where an incorrect number of arguments was supplied when calling (v)log_error. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com> Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
fb1e8fcf9b
commit
8bb69ef665
@@ -539,7 +539,7 @@ static cl_int print_build_log(cl_program program, cl_uint num_devices,
|
|||||||
log_error("clGetProgramBuildInfo returned an empty log.\n");
|
log_error("clGetProgramBuildInfo returned an empty log.\n");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log_error("Build log:\n", deviceName);
|
log_error("Build log for device \"%s\":\n", deviceName);
|
||||||
log_error("%s\n", log.c_str());
|
log_error("%s\n", log.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3133,7 +3133,7 @@ public:
|
|||||||
NumNonAtomicVariablesPerThread() - 1);
|
NumNonAtomicVariablesPerThread() - 1);
|
||||||
log_error("ERROR: Thread #%u observed invalid values "
|
log_error("ERROR: Thread #%u observed invalid values "
|
||||||
"in other thread's variables\n",
|
"in other thread's variables\n",
|
||||||
workOffset + i, myValue);
|
workOffset + i);
|
||||||
correct = false;
|
correct = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1664,7 +1664,7 @@ static cl_program MakeProgram( Type outType, Type inType, SaturationMode sat,
|
|||||||
&programSource, testName, flags);
|
&programSource, testName, flags);
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
vlog_error("Failed to build kernel/program.\n", error);
|
vlog_error("Failed to build kernel/program (err = %d).\n", error);
|
||||||
clReleaseProgram(program);
|
clReleaseProgram(program);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,8 +78,9 @@ int test_read_image_1D_buffer( cl_context context, cl_command_queue queue, cl_ke
|
|||||||
error = clGetMemObjectInfo(image[0], CL_MEM_ASSOCIATED_MEMOBJECT, sizeof(ret), &ret, NULL);
|
error = clGetMemObjectInfo(image[0], CL_MEM_ASSOCIATED_MEMOBJECT, sizeof(ret), &ret, NULL);
|
||||||
if ( error != CL_SUCCESS )
|
if ( error != CL_SUCCESS )
|
||||||
{
|
{
|
||||||
log_error( "ERROR: Unable to query CL_MEM_ASSOCIATED_MEMOBJECT\n", IGetErrorString( error ) );
|
log_error("ERROR: Unable to query CL_MEM_ASSOCIATED_MEMOBJECT (%s)\n",
|
||||||
return error;
|
IGetErrorString(error));
|
||||||
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != imageBuffer) {
|
if (ret != imageBuffer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user