From b41cffbeb4220dec30f512dc9e22cf5adfa3d49f Mon Sep 17 00:00:00 2001 From: bellard Date: Fri, 11 Nov 2005 00:02:25 +0000 Subject: debug msg (malc) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1615 c046a42c-6fe2-441c-8c8c-71466251a162 --- audio/ossaudio.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'audio') diff --git a/audio/ossaudio.c b/audio/ossaudio.c index 5072742..d78e590 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); } -- cgit v1.1