diff --git a/services/impl/screen_capture/mediasource/audio_source_capturer.cpp b/services/impl/screen_capture/mediasource/audio_source_capturer.cpp index dc35bd8d7d17591ed94e51b28150dda736270732..1a1a257153562a94ddadf2e0894ce169e98c52c2 100644 --- a/services/impl/screen_capture/mediasource/audio_source_capturer.cpp +++ b/services/impl/screen_capture/mediasource/audio_source_capturer.cpp @@ -116,7 +116,7 @@ void AudioSourceCapturer::AudioCaptureThreadWorker() auto pcmFrame = FrameImpl::Create(); pcmFrame->codecId_ = CODEC_PCM; - SHARING_LOGI("audio capture buffer size: %{public}d.", audioBufferLen_); + SHARING_LOGI("audio capture buffer size: %{public}zu.", audioBufferLen_); uint8_t *frame = (uint8_t *)malloc(audioBufferLen_); if (!frame) { SHARING_LOGE("malloc buffer failed.");