Commit afdcebcc authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

Tweak safe-assert uses of wrapper functions

Summary: [Folly] Tweak safe-assert uses of wrapper functions.

Reviewed By: nbronson

Differential Revision: D22699636

fbshipit-source-id: 97592e55f64f2e819680424c0f1ddd97e1f7b96c
parent 1c2dcb1d
...@@ -466,7 +466,7 @@ void assertionFailure( ...@@ -466,7 +466,7 @@ void assertionFailure(
writeStderr("\nLine: "); writeStderr("\nLine: ");
char buf[20]; char buf[20];
uint32_t n = uint64ToBufferUnsafe(line, buf); uint32_t n = uint64ToBufferUnsafe(line, buf);
writeFull(STDERR_FILENO, buf, n); writeStderr(buf, n);
writeStderr("\nFunction: "); writeStderr("\nFunction: ");
writeStderr(function); writeStderr(function);
if (error) { if (error) {
...@@ -475,7 +475,7 @@ void assertionFailure( ...@@ -475,7 +475,7 @@ void assertionFailure(
// for simplicity, do not attempt to mimic strerror printing descriptions // for simplicity, do not attempt to mimic strerror printing descriptions
writeStderr("\nError: "); writeStderr("\nError: ");
n = uint64ToBufferUnsafe(error, buf); n = uint64ToBufferUnsafe(error, buf);
writeFull(STDERR_FILENO, buf, n); writeStderr(buf, n);
writeStderr(" ("); writeStderr(" (");
// the list is not required to be sorted; but the program is about to die // the list is not required to be sorted; but the program is about to die
auto const pred = [=](auto const e) { return e.first == error; }; auto const pred = [=](auto const e) { return e.first == error; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment