diff options
| author | Jonathan Metzman <metzman@chromium.org> | 2019-01-31 20:32:20 +0000 |
|---|---|---|
| committer | Jonathan Metzman <metzman@chromium.org> | 2019-01-31 20:32:20 +0000 |
| commit | fc7faecb401c1ef50c8f71594aad16cb150eb987 (patch) | |
| tree | 7c7a9aff30d6d5ff8b4bed50fb2cbbfaed59d53f /compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp | |
| parent | 4f9543b4d6152a5ee574246a645c7a3ec1db2c4f (diff) | |
| download | bcm5719-llvm-fc7faecb401c1ef50c8f71594aad16cb150eb987.tar.gz bcm5719-llvm-fc7faecb401c1ef50c8f71594aad16cb150eb987.zip | |
[fuzzer] Use RawPrint instead of Printf for instrumentation warning
Summary:
Use RawPrint instead of Printf for instrumentation warning because
Printf doesn't work on Win when instrumentation is being
initialized (since OutputFile is not yet initialized).
Reviewers: kcc
Reviewed By: kcc
Differential Revision: https://reviews.llvm.org/D57531
llvm-svn: 352789
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp')
| -rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp index 0595cc291ce..79dacd9765a 100644 --- a/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp @@ -334,7 +334,7 @@ bool IsInterestingCoverageFile(const std::string &FileName) { void RawPrint(const char *Str) { // Not tested, may or may not work. Fix if needed. - Printf("%s", Str); + write(2, Str, strlen(Str)); } } // namespace fuzzer |

