Skip to content

Commit 0f96dfd

Browse files
authored
fix a bug logging the CL_QUEUE_SIZE queue property (#161)
1 parent 260ef5e commit 0f96dfd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

intercept/src/dispatch.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,8 @@ CL_API_ENTRY cl_int CL_API_CALL CLIRN(clGetCommandQueueInfo)(
879879

880880
if( pIntercept && pIntercept->dispatch().clGetCommandQueueInfo )
881881
{
882-
CALL_LOGGING_ENTER( "param_name = %s (%08X)",
882+
CALL_LOGGING_ENTER( "command_queue = %p, param_name = %s (%08X)",
883+
command_queue,
883884
pIntercept->enumName().name( param_name ).c_str(),
884885
param_name );
885886
CPU_PERFORMANCE_TIMING_START();

intercept/src/intercept.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,8 @@ void CLIntercept::getCommandQueuePropertiesString(
19791979
case CL_QUEUE_SIZE:
19801980
{
19811981
const cl_uint* pu = (const cl_uint*)( properties + 1);
1982-
str += pu[0];
1982+
CLI_SPRINTF( s, 256, "%u", pu[0] );
1983+
str += s;
19831984
}
19841985
break;
19851986
case CL_QUEUE_PRIORITY_KHR:

0 commit comments

Comments
 (0)