Skip to content

Commit b50c4cc

Browse files
peplaigcbot
authored andcommitted
Fix printf crash during OCL dumping
Fix misuse of %z - use %zu instead Refactor the customized print function to make it more robust
1 parent 07fbf02 commit b50c4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/AdaptorOCL/OCL/Patch/patch_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ void DebugPatchList(
15781578
for (unsigned i = 0; i < pPatchItem->NumEntries; i++)
15791579
{
15801580
ICBE_DPF_STR(output, GFXDBG_HARDWARE,
1581-
"\tSymbol(Entry %02d): %s\n\t Offset = %z\n\t Size = %d\n\t Type = %d\n",
1581+
"\tSymbol(Entry %02d): %s\n\t Offset = %zu\n\t Size = %d\n\t Type = %d\n",
15821582
i,
15831583
entryPtr->s_name,
15841584
entryPtr->s_offset,

0 commit comments

Comments
 (0)