Skip to content

Commit

Permalink
Merge pull request #7100 from keithc-ca/blob_reader
Browse files Browse the repository at this point in the history
Fix printf formats in blob_reader.cpp
  • Loading branch information
babsingh committed Aug 30, 2023
2 parents 027fe9b + 54b7abf commit 75d2335
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ddr/tools/blob_reader/blob_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,12 @@ main(int argc, char *argv[])
/* The format of the printed list is:
* #: <offset in string data> [<string length>] <string data>
*/
omrfile_printf(OMRPORT_TTY_OUT, "%5u: %8zx [%zu] %.*s\n", stringNum, (uintptr_t)(currentString - stringDataStart), blobString->length, blobString->length, blobString->data);
omrfile_printf(OMRPORT_TTY_OUT, "%5u: %8zx [%u] %.*s\n",
stringNum,
(uintptr_t)(currentString - stringDataStart),
blobString->length,
blobString->length,
blobString->data);

/* NOTE stringTableDataSize includes the space for the lengths */
currentString += blobString->length + sizeof(blobString->length) + padding;
Expand Down Expand Up @@ -393,7 +398,7 @@ main(int argc, char *argv[])
builtStruct->superNameLength,
builtStruct->superName);
}
omrfile_printf(OMRPORT_TTY_OUT, " sizeOf: %zu\n"
omrfile_printf(OMRPORT_TTY_OUT, " sizeOf: %u\n"
" fieldCount: %zu\n"
" constCount: %zu\n",
builtStruct->size,
Expand Down

0 comments on commit 75d2335

Please sign in to comment.