From 1cf0aaa86c4e73cb1a9ef25bf5a0859411a8e2fd Mon Sep 17 00:00:00 2001 From: zhou_xq Date: Mon, 28 Jul 2025 17:25:42 +0800 Subject: [PATCH] The log template is not exposed in the header file Signed-off-by: zhou_xq --- common/dfxutil/smart_fd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/dfxutil/smart_fd.h b/common/dfxutil/smart_fd.h index fd5e83843..f24d67f43 100644 --- a/common/dfxutil/smart_fd.h +++ b/common/dfxutil/smart_fd.h @@ -19,7 +19,6 @@ #include #include #include -#include "dfx_log_define.h" namespace OHOS { namespace HiviewDFX { @@ -29,7 +28,7 @@ public: explicit SmartFd(int fd, bool fdsan = true) : fd_(fd), fdsan_(fdsan) { if (fd_ >= 0 && fdsan_) { - fdsan_exchange_owner_tag(fd_, 0, fdsan_create_owner_tag(FDSAN_OWNER_TYPE_FILE, LOG_DOMAIN)); + fdsan_exchange_owner_tag(fd_, 0, fdsan_create_owner_tag(FDSAN_OWNER_TYPE_FILE, DFX_FDSAN_DOMAIN)); } } @@ -86,12 +85,13 @@ private: return; } if (fdsan_) { - fdsan_close_with_tag(fd_, fdsan_create_owner_tag(FDSAN_OWNER_TYPE_FILE, LOG_DOMAIN)); + fdsan_close_with_tag(fd_, fdsan_create_owner_tag(FDSAN_OWNER_TYPE_FILE, DFX_FDSAN_DOMAIN)); return; } close(fd_); } + static constexpr uint64_t DFX_FDSAN_DOMAIN = 0xD002D11; int fd_{-1}; bool fdsan_{false}; }; -- Gitee