From 26a82295714ce1c4b7b4f7aeb74baf0bba2b2a65 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 03:42:09 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20frameworks/libhilog/base/hilog=5Fb?= =?UTF-8?q?ase.c.=20=E7=A4=BE=E5=8C=BAsdk=E7=BC=96=E8=AF=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E8=A7=84=E9=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 贾孟元 --- frameworks/libhilog/base/hilog_base.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frameworks/libhilog/base/hilog_base.c b/frameworks/libhilog/base/hilog_base.c index c482e9c..ccf26e6 100644 --- a/frameworks/libhilog/base/hilog_base.c +++ b/frameworks/libhilog/base/hilog_base.c @@ -25,6 +25,8 @@ #include #include #include +#include +#include #define LOG_LEN 3 #define ERROR_FD 2 -- Gitee 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 2/2] =?UTF-8?q?update=20frameworks/libhilog/base/hilog=5Fb?= =?UTF-8?q?ase.c.=20=E7=A4=BE=E5=8C=BAsdk=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=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