[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] audio: Fix format specifications of debug logs
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH] audio: Fix format specifications of debug logs |
Date: |
Thu, 17 Jun 2021 11:59:00 +0200 |
On Wed, Jun 16, 2021 at 11:14:11PM +0900, Akihiko Odaki wrote:
> Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
> ---
> audio/audio.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/audio/audio.c b/audio/audio.c
> index 534278edfed..6eba208cdba 100644
> --- a/audio/audio.c
> +++ b/audio/audio.c
> @@ -704,7 +704,7 @@ static size_t audio_pcm_sw_write(SWVoiceOut *sw, void
> *buf, size_t size)
>
> if (live == hwsamples) {
> #ifdef DEBUG_OUT
> - dolog ("%s is full %d\n", sw->name, live);
> + dolog ("%s is full %zu\n", sw->name, live);
> #endif
> return 0;
> }
> @@ -994,7 +994,7 @@ static size_t audio_get_avail (SWVoiceIn *sw)
> }
>
> ldebug (
> - "%s: get_avail live %d ret %" PRId64 "\n",
> + "%s: get_avail live %zu ret %" PRId64 "\n",
> SW_NAME (sw),
> live, (((int64_t) live << 32) / sw->ratio) * sw->info.bytes_per_frame
> );
> @@ -1021,7 +1021,7 @@ static size_t audio_get_free(SWVoiceOut *sw)
> dead = sw->hw->mix_buf->size - live;
>
> #ifdef DEBUG_OUT
> - dolog ("%s: get_free live %d dead %d ret %" PRId64 "\n",
> + dolog ("%s: get_free live %zu dead %zu ret %" PRId64 "\n",
> SW_NAME (sw),
> live, dead, (((int64_t) dead << 32) / sw->ratio) *
> sw->info.bytes_per_frame);
Added to audio queue.
thanks,
Gerd