diff --git a/module_manager/native_module_manager.cpp b/module_manager/native_module_manager.cpp index f1c2955bbef12f7017ee8aab4df1704ed0f4d72c..0f67f41ddc2894bdf43723c6da363545e79dd0fb 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 cf502895e7f93c432174c1ddcd980cd8c3f70931..571bfaa8636919dbfda356792ab8aeb3f20fd7db 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) {