diff options
Diffstat (limited to 'audio/wavcapture.c')
-rw-r--r-- | audio/wavcapture.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/audio/wavcapture.c b/audio/wavcapture.c index 0f6f7bf..748b580 100644 --- a/audio/wavcapture.c +++ b/audio/wavcapture.c @@ -103,8 +103,7 @@ int wav_start_capture (CaptureState *s, const char *path, int freq, } if (nchannels != 1 && nchannels != 2) { - term_printf ("incorrect channel count %d, must be 1 or 2\n", - nchannels); + term_printf ("incorrect channel count %d, must be 1 or 2\n", bits); return -1; } @@ -122,8 +121,7 @@ int wav_start_capture (CaptureState *s, const char *path, int freq, wav = qemu_mallocz (sizeof (*wav)); if (!wav) { - term_printf ("Could not allocate memory for wav capture (%zu bytes)", - sizeof (*wav)); + AUD_log ("wav", "Could not allocate memory (%zu bytes)", sizeof (*wav)); return -1; } |