From 53f231fdea8c3c4156bd419886874e39ae24c301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=AD=9F=E5=85=83?= Date: Mon, 28 Oct 2024 06:36:43 +0000 Subject: [PATCH] =?UTF-8?q?update=20frameworks/libhilog/base/hilog=5Fbase.?= =?UTF-8?q?c.=20=E7=A4=BE=E5=8C=BAsdk=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 贾孟元 --- frameworks/libhilog/base/hilog_base.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frameworks/libhilog/base/hilog_base.c b/frameworks/libhilog/base/hilog_base.c index ccf26e6..5a28353 100644 --- a/frameworks/libhilog/base/hilog_base.c +++ b/frameworks/libhilog/base/hilog_base.c @@ -78,6 +78,10 @@ static int SendMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const return ret; } +pid_t gettid(void) { + return (pid_t)syscall(SYS_gettid); +} + int HiLogBasePrintArgs( const LogType type, const LogLevel level, const unsigned int domain, const char *tag, const char *fmt, va_list ap) { -- Gitee