diff --git a/frameworks/core/src/common_event.cpp b/frameworks/core/src/common_event.cpp index bf46e1f8f553665306f6f59880726bd8d892f8a9..62428bac58827c578bb19ba3a8b441d8881fe8cf 100644 --- a/frameworks/core/src/common_event.cpp +++ b/frameworks/core/src/common_event.cpp @@ -178,7 +178,7 @@ int32_t CommonEvent::UnSubscribeCommonEvent(const std::shared_ptr lock(eventListenersMutex_); auto eventListener = eventListeners_.find(subscriber); if (eventListener != eventListeners_.end()) { - EVENT_LOGD("before UnsubscribeCommonEvent proxy valid state is %{public}d, listeners size is %{public}d", + EVENT_LOGD("before UnsubscribeCommonEvent proxy valid state is %{public}d, listeners size is %{public}zu", isProxyValid_, eventListeners_.size()); if (commonEventProxy_->UnsubscribeCommonEvent(eventListener->second->AsObject()) == ERR_OK) { eventListener->second->Stop();