From 78c24561976fe178ea9d12789df6095907db826b Mon Sep 17 00:00:00 2001 From: yanzhiqi1 Date: Mon, 11 Aug 2025 15:51:02 +0800 Subject: [PATCH] reduce log Issue: #ICSDEH Signed-off-by: yanzhiqi1 Change-Id: Ic1d2e15f8c3b66442820ab573096a2b195909ea9 --- module_manager/native_module_manager.cpp | 4 ++-- native_engine/native_api.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module_manager/native_module_manager.cpp b/module_manager/native_module_manager.cpp index f1c2955bb..0f67f41dd 100644 --- a/module_manager/native_module_manager.cpp +++ b/module_manager/native_module_manager.cpp @@ -302,7 +302,7 @@ void NativeModuleManager::Register(NativeModule* nativeModule) tailNativeModule_->moduleLoaded = true; tailNativeModule_->systemFilePath = ""; if (isAppModule_) { - HILOG_INFO("At tail register module name is '%{public}s'", tailNativeModule_->name); + HILOG_INFO("Tail module name is '%{public}s'", tailNativeModule_->name); } HILOG_DEBUG("At tail register module name is '%{public}s', isAppModule is %{public}d", tailNativeModule_->name, isAppModule_); @@ -1223,7 +1223,7 @@ void NativeModuleManager::RegisterByBuffer(const std::string& moduleKey, const u tailNativeModule_->jsCodeLen = static_cast(len); tailNativeModule_->next = nullptr; - HILOG_INFO("Register by buffer success. module name is '%{public}s'", tailNativeModule_->moduleName); + HILOG_INFO("Module name is '%{public}s'", tailNativeModule_->moduleName); } bool NativeModuleManager::RemoveNativeModuleByCache(const std::string& moduleKey) diff --git a/native_engine/native_api.cpp b/native_engine/native_api.cpp index cf502895e..571bfaa86 100644 --- a/native_engine/native_api.cpp +++ b/native_engine/native_api.cpp @@ -410,7 +410,7 @@ NAPI_EXTERN napi_status napi_create_string_utf16( auto vm = reinterpret_cast(env)->GetEcmaVm(); int char16Length = static_cast(std::char_traits::length(str)); if (length != NAPI_AUTO_LENGTH && length != static_cast(char16Length)) { - HILOG_WARN("`length` (%{public}zu) not equals to strlen(`str`) (%{public}d), result may be unexpected", + HILOG_WARN("`length` (%{public}zu) not equals to strlen(`str`) (%{public}d)", length, char16Length); } if (length < SMALL_STRING_SIZE) { -- Gitee