Fix a crash bug when no %d appears in the printf fmt
authorJunyan He <junyan.he@linux.intel.com>
Fri, 20 Jun 2014 09:41:19 +0000 (17:41 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 23 Jun 2014 02:33:47 +0000 (10:33 +0800)
commit37eaf91688f65ed4b43f570a734908ca14d0149f
treef6a673a561d5c4e476031617e5546d7cd20eba17
parentaed86199bded8478070010386aea321b865e21a8
Fix a crash bug when no %d appears in the printf fmt

If there no %d for all the printf statement, the curbe
will ignore the content buffer ptr because no one use it.
So when bind the buffer ptr in the run time, crash happens.

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
src/cl_command_queue.c
src/cl_command_queue_gen7.c