From da05a6d8b54c17385bf6aa79958361c9ee0b789b Mon Sep 17 00:00:00 2001 From: xushengbin Date: Thu, 31 Jul 2025 05:47:30 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=9D=8F=E5=91=B3?= =?UTF-8?q?=E9=81=93=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xushengbin --- .../core/frame_aware_policy/src/intellisense_server.cpp | 4 ++-- frameworks/core/frame_aware_policy/src/para_config.cpp | 1 - interfaces/innerkits/frameintf/rtg_interface.cpp | 7 ++++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frameworks/core/frame_aware_policy/src/intellisense_server.cpp b/frameworks/core/frame_aware_policy/src/intellisense_server.cpp index 2df393d..af7b2e3 100644 --- a/frameworks/core/frame_aware_policy/src/intellisense_server.cpp +++ b/frameworks/core/frame_aware_policy/src/intellisense_server.cpp @@ -386,7 +386,7 @@ int IntelliSenseServer::CreateNewRtgGrp(int prioType, int rtNum) char fileName[] = "/proc/self/sched_rtg_ctrl"; FILE* f = fopen(fileName, "r+"); if (f == nullptr) { - RME_LOGE("Open file /proc/self/sched_rth_ctrl, errno = %{public}d", errno); + RME_LOGE("Open file failed, errno = %{public}d", errno); return -1; } int fd = fileno(f); @@ -409,7 +409,7 @@ int IntelliSenseServer::CreateNewRtgGrp(int prioType, int rtNum) } int fc = fclose(f); if (fc != 0) { - RME_LOGE("fclose file /proc/self/sched_rth_ctrl, errno = %{public}d (%{public}s)", errno, strerror(errno)); + RME_LOGE("fclose file failed, errno = %{public}d (%{public}s)", errno, strerror(errno)); } return ret; } diff --git a/frameworks/core/frame_aware_policy/src/para_config.cpp b/frameworks/core/frame_aware_policy/src/para_config.cpp index f6f8064..547cd8f 100644 --- a/frameworks/core/frame_aware_policy/src/para_config.cpp +++ b/frameworks/core/frame_aware_policy/src/para_config.cpp @@ -33,7 +33,6 @@ std::vector ParaConfig::m_renderTypeList; bool ParaConfig::IsXmlPrepared(const std::string& filePath) { xmlDocPtr docPtr = xmlReadFile(filePath.c_str(), nullptr, XML_PARSE_NOBLANKS); - RME_LOGI("[IsXmlPrepared]:filePath:%{public}s", filePath.c_str()); if (docPtr == nullptr) { RME_LOGE("[IsXmlPrepared]:load xml error!"); return false; diff --git a/interfaces/innerkits/frameintf/rtg_interface.cpp b/interfaces/innerkits/frameintf/rtg_interface.cpp index 9b7b602..3a6efba 100644 --- a/interfaces/innerkits/frameintf/rtg_interface.cpp +++ b/interfaces/innerkits/frameintf/rtg_interface.cpp @@ -68,11 +68,12 @@ __attribute__((constructor)) void BasicOpenRtgNode() char fileName[] = "/proc/self/sched_rtg_ctrl"; g_f = fopen(fileName, "r+"); if (g_f == nullptr) { - RME_LOGI("rtg Open fail, errno = %{public}d(%{public}s), dev = %{public}s", errno, strerror(errno), fileName); + RME_LOGI("rtg Open fail, errno = %{public}d(%{public}s)", errno, strerror(errno)); return; } g_fd = fileno(g_f); if (g_fd < 0) { + RME_LOGI("rtg Open fail, errno = %{public}d(%{public}s)", errno, strerror(errno)); return; } RME_LOGI("rtg Open success"); @@ -87,7 +88,7 @@ __attribute__((destructor)) void BasicCloseRtgNode() RME_LOGI("rtg Close g_fd ret is %{public}d", g_fd); int fc = fclose(g_f); if (fc != 0) { - RME_LOGE("rtg fclose file /proc/self/sched_rtg_ctrl, errno = %{public}d (%{public}s)", errno, strerror(errno)); + RME_LOGE("rtg fclose file, errno = %{public}d (%{public}s)", errno, strerror(errno)); } g_fd = -1; g_f = nullptr; @@ -308,7 +309,7 @@ int EndScene(int grpId) { int ret = 0; if (g_fd < 0) { - RME_LOGE("Open fail /proc/self/sched_rtg_ctrl"); + RME_LOGE("Open file failed"); return g_fd; } struct proc_state_data state_data; -- Gitee From 1540b7720428d0959f729045a8e7acceb574735e Mon Sep 17 00:00:00 2001 From: xushengbin Date: Thu, 31 Jul 2025 08:52:18 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=9D=8F=E5=91=B3?= =?UTF-8?q?=E9=81=93=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xushengbin --- .../core/frame_aware_policy/src/intellisense_server.cpp | 4 ++-- interfaces/innerkits/frameintf/rtg_interface.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/core/frame_aware_policy/src/intellisense_server.cpp b/frameworks/core/frame_aware_policy/src/intellisense_server.cpp index af7b2e3..ba039b5 100644 --- a/frameworks/core/frame_aware_policy/src/intellisense_server.cpp +++ b/frameworks/core/frame_aware_policy/src/intellisense_server.cpp @@ -386,7 +386,7 @@ int IntelliSenseServer::CreateNewRtgGrp(int prioType, int rtNum) char fileName[] = "/proc/self/sched_rtg_ctrl"; FILE* f = fopen(fileName, "r+"); if (f == nullptr) { - RME_LOGE("Open file failed, errno = %{public}d", errno); + RME_LOGE("[CreateNewRtgGrp]:fopen file failed, errno = %{public}d", errno); return -1; } int fd = fileno(f); @@ -409,7 +409,7 @@ int IntelliSenseServer::CreateNewRtgGrp(int prioType, int rtNum) } int fc = fclose(f); if (fc != 0) { - RME_LOGE("fclose file failed, errno = %{public}d (%{public}s)", errno, strerror(errno)); + RME_LOGE("[CreateNewRtgGrp]:fclose file failed, errno = %{public}d (%{public}s)", errno, strerror(errno)); } return ret; } diff --git a/interfaces/innerkits/frameintf/rtg_interface.cpp b/interfaces/innerkits/frameintf/rtg_interface.cpp index 3a6efba..6aeef5d 100644 --- a/interfaces/innerkits/frameintf/rtg_interface.cpp +++ b/interfaces/innerkits/frameintf/rtg_interface.cpp @@ -309,7 +309,7 @@ int EndScene(int grpId) { int ret = 0; if (g_fd < 0) { - RME_LOGE("Open file failed"); + RME_LOGE("[EndScene]:Open file failed"); return g_fd; } struct proc_state_data state_data; -- Gitee From 2fb3c0d42546995ed2bbd0fd1a667d19a533bd58 Mon Sep 17 00:00:00 2001 From: xushengbin Date: Thu, 31 Jul 2025 08:58:32 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xushengbin --- interfaces/innerkits/frameintf/rtg_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/innerkits/frameintf/rtg_interface.cpp b/interfaces/innerkits/frameintf/rtg_interface.cpp index 6aeef5d..fa80ea6 100644 --- a/interfaces/innerkits/frameintf/rtg_interface.cpp +++ b/interfaces/innerkits/frameintf/rtg_interface.cpp @@ -68,12 +68,12 @@ __attribute__((constructor)) void BasicOpenRtgNode() char fileName[] = "/proc/self/sched_rtg_ctrl"; g_f = fopen(fileName, "r+"); if (g_f == nullptr) { - RME_LOGI("rtg Open fail, errno = %{public}d(%{public}s)", errno, strerror(errno)); + RME_LOGI("rtg fOpen fail, errno = %{public}d(%{public}s)", errno, strerror(errno)); return; } g_fd = fileno(g_f); if (g_fd < 0) { - RME_LOGI("rtg Open fail, errno = %{public}d(%{public}s)", errno, strerror(errno)); + RME_LOGI("rtg fileno fail, errno = %{public}d(%{public}s)", errno, strerror(errno)); return; } RME_LOGI("rtg Open success"); -- Gitee