Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VerboseGC Initialized Stanza Print Fix
Using `printf` methods _(e.g `omrfile_printf` & `omrfilestream_printf`)_ to write to files is problematic when the output buffer contains a string with a specifier character (e.g %s). In such a case, the special character is intended to be be outputted raw to the file rather than evaluated/expanded. `printf` will attempt to evaluate the specifiers whereas the buffer must be printed raw. Currently, `printf` methods are used when outputting verbose initialized block (string). When outputting the init block, use the verbose writer's `outputString` method rather than using - `omrfilestream_printf` for FileLoggingSynchronous Writer - `omrfile_printf` for FileLoggingBuffered Writer `outputString` will use `omrfile_write_text` and just print the raw characters. Signed-off-by: Salman Rana <salman.rana@ibm.com>
- Loading branch information
7ada644
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok