[PATCH] D90120: [sanitizer] Print errno for report file open failure
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 28 02:30:33 PDT 2020
vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.
================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_file.cpp:68
+ char errmsg[100];
+ internal_snprintf(errmsg, 100, " (reason: %d)", err);
+ WriteToFile(kStderrFd, errmsg, internal_strlen(errmsg));
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90120/new/
https://reviews.llvm.org/D90120
More information about the llvm-commits
mailing list