diff --git a/napi/settings/napi_settings.cpp b/napi/settings/napi_settings.cpp index 7600d5e8..048e5573 100644 --- a/napi/settings/napi_settings.cpp +++ b/napi/settings/napi_settings.cpp @@ -265,7 +265,7 @@ napi_value napi_get_uri(napi_env env, napi_callback_info info) [](napi_env env, napi_status status, void* data) { SETTING_LOG_INFO("settingsnapi : uri promise async end called callback"); AsyncCallbackInfo* asyncCallbackInfo = (AsyncCallbackInfo*)data; - SETTING_LOG_INFO("settingsnapi : uri promise end get callback value is %{public}s", + SETTING_LOG_INFO("settingsnapi : uri promise end get callback value is %{public}s", asyncCallbackInfo->uri.c_str()); napi_value result = wrap_string_to_js(env, asyncCallbackInfo->uri); napi_resolve_deferred(asyncCallbackInfo->env, asyncCallbackInfo->deferred, result); @@ -676,7 +676,7 @@ napi_value napi_get_value(napi_env env, napi_callback_info info) SETTING_LOG_INFO("settingsnapi : promise async execute callback"); AsyncCallbackInfo* asyncCallbackInfo = (AsyncCallbackInfo*)data; SETTING_LOG_INFO("settingsnapi : promise get callback key is %{public}s", asyncCallbackInfo->key.c_str()); - SETTING_LOG_INFO("settingsnapi : promise get callback value is %{public}s", + SETTING_LOG_INFO("settingsnapi : promise get callback value is %{public}s", asyncCallbackInfo->value.c_str()); std::vector columns; diff --git a/napi/settings/napi_settings_log.h b/napi/settings/napi_settings_log.h index 261b700e..bac846a1 100644 --- a/napi/settings/napi_settings_log.h +++ b/napi/settings/napi_settings_log.h @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.