diff options
author | Abseil Team <absl-team@google.com> | 2023-06-15 12:18:13 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-06-15 12:19:02 -0700 |
commit | 04e0dcae14f6bde8f4feec4516b12d4f787a517f (patch) | |
tree | 60c1712928a82323ef70b35525aa48ebf857f514 /absl/base/internal | |
parent | 5922d12960110b75e8fe7f8a7ea1a1d6a5bec708 (diff) |
Rename AsyncSignalSafeWriteToStderr to AsyncSignalSafeWriteError.
It no longer strictly writes to stderr, since Emscripten/WebAssembly now use _emscripten_err which might be replaced by something that is not the same as stderr by the host.
PiperOrigin-RevId: 540655336
Change-Id: Icc2a430a0db53a1282ef5558e9f3648db67e972c
Diffstat (limited to 'absl/base/internal')
-rw-r--r-- | absl/base/internal/raw_logging.cc | 4 | ||||
-rw-r--r-- | absl/base/internal/raw_logging.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/absl/base/internal/raw_logging.cc b/absl/base/internal/raw_logging.cc index 5ea49bca..c866d957 100644 --- a/absl/base/internal/raw_logging.cc +++ b/absl/base/internal/raw_logging.cc @@ -177,7 +177,7 @@ void RawLogVA(absl::LogSeverity severity, const char* file, int line, } else { DoRawLog(&buf, &size, "%s", kTruncated); } - AsyncSignalSafeWriteToStderr(buffer, strlen(buffer)); + AsyncSignalSafeWriteError(buffer, strlen(buffer)); } #else static_cast<void>(format); @@ -205,7 +205,7 @@ void DefaultInternalLog(absl::LogSeverity severity, const char* file, int line, } // namespace -void AsyncSignalSafeWriteToStderr(const char* s, size_t len) { +void AsyncSignalSafeWriteError(const char* s, size_t len) { absl::base_internal::ErrnoSaver errno_saver; #if defined(__EMSCRIPTEN__) // In WebAssembly, bypass filesystem emulation via fwrite. diff --git a/absl/base/internal/raw_logging.h b/absl/base/internal/raw_logging.h index 3f852d31..b79550b2 100644 --- a/absl/base/internal/raw_logging.h +++ b/absl/base/internal/raw_logging.h @@ -130,7 +130,7 @@ void RawLog(absl::LogSeverity severity, const char* file, int line, // Writes the provided buffer directly to stderr, in a signal-safe, low-level // manner. Preserves errno. -void AsyncSignalSafeWriteToStderr(const char* s, size_t len); +void AsyncSignalSafeWriteError(const char* s, size_t len); // compile-time function to get the "base" filename, that is, the part of // a filename after the last "/" or "\" path separator. The search starts at |