aboutsummaryrefslogtreecommitdiff
path: root/audio/ossaudio.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-11 00:02:25 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-11 00:02:25 +0000
commitb41cffbeb4220dec30f512dc9e22cf5adfa3d49f (patch)
treef07d28c90b96bd4d1efef8a16daad604aea74837 /audio/ossaudio.c
parent0bd488500244aee6596097b564eb95a32823a6d9 (diff)
debug msg (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1615 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/ossaudio.c')
-rw-r--r--audio/ossaudio.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/audio/ossaudio.c b/audio/ossaudio.c
index 5072742491..d78e59019d 100644
--- a/audio/ossaudio.c
+++ b/audio/ossaudio.c
@@ -506,8 +506,11 @@ static int oss_init_out (HWVoiceOut *hw, audsettings_t *as)
1 << hw->info.shift
);
if (!oss->pcm_buf) {
- dolog ("Could not allocate DAC buffer (%d bytes)\n",
- hw->samples << hw->info.shift);
+ dolog (
+ "Could not allocate DAC buffer (%d samples, each %d bytes)\n",
+ hw->samples,
+ 1 << hw->info.shift
+ );
oss_anal_close (&fd);
return -1;
}
@@ -597,8 +600,8 @@ static int oss_init_in (HWVoiceIn *hw, audsettings_t *as)
hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift;
oss->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift);
if (!oss->pcm_buf) {
- dolog ("Could not allocate ADC buffer (%d bytes)\n",
- hw->samples << hw->info.shift);
+ dolog ("Could not allocate ADC buffer (%d samples, each %d bytes)\n",
+ hw->samples, 1 << hw->info.shift);
oss_anal_close (&fd);
return -1;
}
@@ -657,7 +660,7 @@ static int oss_run_in (HWVoiceIn *hw)
if (nread > 0) {
if (nread & hw->info.align) {
- dolog ("warning: Misaligned read %d (requested %d), "
+ dolog ("warning: Misaligned read %zd (requested %d), "
"alignment %d\n", nread, bufs[i].add << hwshift,
hw->info.align + 1);
}