diff --git a/frameworks/libhilog/base/hilog_base.c b/frameworks/libhilog/base/hilog_base.c index 7e344f657dc192886e543ac1e2aaed751e969b9d..024cc6842834e89428ddc434a1b2c0f95ba3ffeb 100644 --- a/frameworks/libhilog/base/hilog_base.c +++ b/frameworks/libhilog/base/hilog_base.c @@ -92,7 +92,7 @@ int HiLogBasePrintArgs( #ifndef __RECV_MSG_WITH_UCRED_ header.pid = getpid(); #endif - header.tid = (uint32_t)(gettid()); + header.tid = (uint32_t)(getproctid()); header.domain = domain; return SendMessage(&header, tag, tagLen + 1, buf, logLen + 1); @@ -118,4 +118,4 @@ bool HiLogBaseIsLoggable(unsigned int domain, const char *tag, LogLevel level) return false; } return true; -} \ No newline at end of file +}