diff --git a/base/src/directory_ex.cpp b/base/src/directory_ex.cpp index e8d8c787a658500892eb2fb3c040a3850ff251ae..4ddd6465032aa820ce07f2f6fb4c0e8ec66e4a3e 100644 --- a/base/src/directory_ex.cpp +++ b/base/src/directory_ex.cpp @@ -421,7 +421,7 @@ bool PathToRealPath(const string& path, string& realPath) char tmpPath[PATH_MAX] = {0}; if (realpath(path.c_str(), tmpPath) == nullptr) { - UTILS_LOGE("path to realpath error: %{public}s", strerror(errno)); + UTILS_LOGE("path (%{public}s) to realpath error: %{public}s", path.c_str(), strerror(errno)); return false; } diff --git a/base/src/refbase.cpp b/base/src/refbase.cpp index dff86ab0c9b60891eef96bfb0353a64d31ec3888..fa0e3544b9b9866c22530791625bd94a6f89702e 100644 --- a/base/src/refbase.cpp +++ b/base/src/refbase.cpp @@ -244,7 +244,7 @@ int RefCounter::DecStrongRefCount(const void* objectId) int curCount = GetStrongRefCount(); if (curCount == INITIAL_PRIMARY_VALUE) { // unexpected case: there had never a strong reference. - UTILS_LOGF("decStrongRef when there is nerver a strong reference"); + UTILS_LOGD("decStrongRef when there is nerver a strong reference"); } else if (curCount > 0) { // we should update the current count here. // it may be changed after last operation.