[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/7] audio: Fix format specifications of debug logs
From: |
Gerd Hoffmann |
Subject: |
[PULL 6/7] audio: Fix format specifications of debug logs |
Date: |
Thu, 17 Jun 2021 14:41:06 +0200 |
From: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-id: 20210616141411.53892-1-akihiko.odaki@gmail.com
Message-Id: <20210616141411.53892-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
audio/audio.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index 052ca6cb789b..59453ef85673 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -705,7 +705,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;
}
@@ -995,7 +995,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
);
@@ -1022,7 +1022,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);
--
2.31.1
- [PULL 0/7] Audio 20210617 patches, Gerd Hoffmann, 2021/06/17
- [PULL 2/7] paaudio: remove unused stream flags, Gerd Hoffmann, 2021/06/17
- [PULL 1/7] alsaaudio: remove #ifdef DEBUG to avoid bit rot, Gerd Hoffmann, 2021/06/17
- [PULL 3/7] audio: move code to audio/audio.c, Gerd Hoffmann, 2021/06/17
- [PULL 5/7] hw/audio/sb16: Avoid assertion by restricting I/O sampling rate range, Gerd Hoffmann, 2021/06/17
- [PULL 4/7] jackaudio: avoid that the client name contains the word (NULL), Gerd Hoffmann, 2021/06/17
- [PULL 6/7] audio: Fix format specifications of debug logs,
Gerd Hoffmann <=
- [PULL 7/7] coreaudio: Fix output stream format settings, Gerd Hoffmann, 2021/06/17
- Re: [PULL 0/7] Audio 20210617 patches, no-reply, 2021/06/17
- Re: [PULL 0/7] Audio 20210617 patches, Peter Maydell, 2021/06/18