Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: use custom fprintf alike to write errors to stderr #31446

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
fixup! src: use custom fprintf alike to write errors to stderr
  • Loading branch information
addaleax committed Jan 22, 2020
commit bd8c9d68783ebcfeca52b1e2acf94835e9ded661
1 change: 1 addition & 0 deletions src/debug_utils.cc
Original file line number Diff line number Diff line change
@@ -443,6 +443,7 @@ std::vector<std::string> NativeSymbolDebuggingContext::GetLoadedLibraries() {

void FWrite(FILE* file, const std::string& str) {
auto simple_fwrite = [&]() {
// The return value is ignored because there's no good way to handle it.
fwrite(str.data(), str.size(), 1, file);
addaleax marked this conversation as resolved.
Show resolved Hide resolved
};