From dc19c175772a1e206cbb113bbba860185f7c98f8 Mon Sep 17 00:00:00 2001 From: Cooper Date: Thu, 21 Aug 2025 20:11:56 +0800 Subject: [PATCH] =?UTF-8?q?schedstat=E8=A7=A3=E6=9E=90=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cooper --- common/dfxutil/proc_util.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/dfxutil/proc_util.cpp b/common/dfxutil/proc_util.cpp index a3180d693..b96707b51 100644 --- a/common/dfxutil/proc_util.cpp +++ b/common/dfxutil/proc_util.cpp @@ -45,7 +45,6 @@ bool Schedstat::ParseSchedstat(const std::string& schedstatPath) { char realPath[PATH_MAX] = {0}; if (realpath(schedstatPath.c_str(), realPath) == nullptr) { - DFXLOGE("path invalid. %{public}s", schedstatPath.c_str()); return false; } @@ -104,6 +103,7 @@ bool ThreadInfo::ParserThreadInfo(pid_t tid) ProcessInfo info; if (!ParseProcInfo(tid, info)) { + DFXLOGE("read %{public}d info failed.", tid); return false; } @@ -222,7 +222,6 @@ bool ParseStat(const std::string& statPath, ProcessInfo& info) { char realPath[PATH_MAX] = {0}; if (realpath(statPath.c_str(), realPath) == nullptr) { - DFXLOGE("path invalid. %{public}s", statPath.c_str()); return false; } -- Gitee