From f5c801de04f423269d9cefa3d725b52b87c7a0b9 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 5 Dec 2025 20:49:10 +0800 Subject: Refactor CRU_LOG_TAG_*. --- src/base/platform/unix/PosixSpawnSubProcess.cpp | 2 +- src/base/platform/unix/UnixFile.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/base/platform/unix') diff --git a/src/base/platform/unix/PosixSpawnSubProcess.cpp b/src/base/platform/unix/PosixSpawnSubProcess.cpp index c287d253..dd4f4cd2 100644 --- a/src/base/platform/unix/PosixSpawnSubProcess.cpp +++ b/src/base/platform/unix/PosixSpawnSubProcess.cpp @@ -146,7 +146,7 @@ SubProcessExitResult PosixSpawnSubProcessImpl::PlatformWaitForProcess() { while (waitpid(pid_, &wstatus, 0) == -1) { if (errno == EINTR) { - CRU_LOG_TAG_INFO("Waitpid is interrupted by a signal. Call it again."); + CruLogInfo(kLogTag, "Waitpid is interrupted by a signal. Call it again."); continue; } diff --git a/src/base/platform/unix/UnixFile.cpp b/src/base/platform/unix/UnixFile.cpp index 001b4fb9..3d42516b 100644 --- a/src/base/platform/unix/UnixFile.cpp +++ b/src/base/platform/unix/UnixFile.cpp @@ -21,8 +21,8 @@ UnixFileDescriptor::~UnixFileDescriptor() { constexpr auto kLogTag = "cru::platform::unix::UnixFileDescriptor"; if (this->IsValid() && this->IsAutoClose()) { if (!this->DoClose()) { - CRU_LOG_TAG_ERROR("Failed to close file descriptor {}, errno {}.", - descriptor_, errno); + CruLogError(kLogTag, "Failed to close file descriptor {}, errno {}.", + descriptor_, errno); } } } -- cgit v1.2.3