aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@gmail.com>2021-06-16 23:14:11 +0900
committerGerd Hoffmann <kraxel@redhat.com>2021-06-17 11:56:57 +0200
commit0c29b786e6b5276d43be2be255a8323c628ec790 (patch)
tree6e28f6019b120e4152822bfa07244c69c4f946b1 /audio
parenta2cd86a94a881b38a7d8bb67c61920ab3b23e82d (diff)
downloadqemu-0c29b786e6b5276d43be2be255a8323c628ec790.zip
qemu-0c29b786e6b5276d43be2be255a8323c628ec790.tar.gz
qemu-0c29b786e6b5276d43be2be255a8323c628ec790.tar.bz2
audio: Fix format specifications of debug logs
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>
Diffstat (limited to 'audio')
-rw-r--r--audio/audio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/audio.c b/audio/audio.c
index 052ca6c..59453ef 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);