!16933 日志整改

Merge pull request !16933 from shiguoquan/log
This commit is contained in:
openharmony_ci 2024-11-08 07:22:49 +00:00 committed by Gitee
commit 2f4749527d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 2 additions and 8 deletions

View File

@ -246,7 +246,7 @@ int RSRenderService::Dump(int fd, const std::vector<std::u16string>& args)
return OHOS::INVALID_OPERATION;
}
if (write(fd, dumpString.c_str(), dumpString.size()) < 0) {
RS_LOGE("RSRenderService::DumpNodesNotOnTheTree write failed");
RS_LOGE("RSRenderService::DumpNodesNotOnTheTree write failed, string size: %{public}zu", dumpString.size());
return UNKNOWN_ERROR;
}
return OHOS::NO_ERROR;

View File

@ -2170,7 +2170,7 @@ void RSSurfaceRenderNode::CheckAndUpdateOpaqueRegion(const RectI& screeninfo, co
opaqueRegionBaseInfo_.containerConfig_ == containerConfig_;
if (!ret) {
if (absRect.IsEmpty()) {
RS_LOGW("%{public}s absRect is empty, dst rect: %{public}s, old dirty in surface: %{public}s",
RS_LOGD("%{public}s absRect is empty, dst rect: %{public}s, old dirty in surface: %{public}s",
GetName().c_str(), GetDstRect().ToString().c_str(), GetOldDirtyInSurface().ToString().c_str());
RS_TRACE_NAME_FMT("%s absRect is empty, dst rect: %s, old dirty in surface: %s",
GetName().c_str(), GetDstRect().ToString().c_str(), GetOldDirtyInSurface().ToString().c_str());

View File

@ -42,20 +42,17 @@ sptr<RSRenderServiceConnectHub> RSRenderServiceConnectHub::GetInstance()
void RSRenderServiceConnectHub::Init()
{
RS_LOGD("RSRenderServiceConnectHub::Init");
instance_ = new RSRenderServiceConnectHub();
::atexit(&RSRenderServiceConnectHub::Destroy);
}
void RSRenderServiceConnectHub::Destroy()
{
RS_LOGI("RSRenderServiceConnectHub::Destroy");
instance_ = nullptr;
}
RSRenderServiceConnectHub::RSRenderServiceConnectHub()
{
RS_LOGD("RSRenderServiceConnectHub: ctor");
}
RSRenderServiceConnectHub::~RSRenderServiceConnectHub() noexcept
@ -63,7 +60,6 @@ RSRenderServiceConnectHub::~RSRenderServiceConnectHub() noexcept
if (renderService_ && renderService_->AsObject() && deathRecipient_) {
renderService_->AsObject()->RemoveDeathRecipient(deathRecipient_);
}
RS_LOGI("~RSRenderServiceConnectHub: dtor");
}
sptr<RSIRenderServiceConnection> RSRenderServiceConnectHub::GetRenderService()
@ -149,7 +145,6 @@ bool RSRenderServiceConnectHub::Connect()
void RSRenderServiceConnectHub::ConnectDied()
{
mutex_.lock();
RS_LOGI("RSRenderServiceConnectHub::ConnectDied lock pid: %{public}d", getpid());
renderService_ = nullptr;
if (conn_) {
conn_->RunOnRemoteDiedCallback();
@ -158,7 +153,6 @@ void RSRenderServiceConnectHub::ConnectDied()
deathRecipient_ = nullptr;
token_ = nullptr;
mutex_.unlock();
RS_LOGI("RSRenderServiceConnectHub::ConnectDied unlock pid: %{public}d", getpid());
}
void RSRenderServiceConnectHub::RenderServiceDeathRecipient::OnRemoteDied(const wptr<IRemoteObject>& remote)