diff --git a/audio/wavcapture.c b/audio/wavcapture.c index f55d59cac636d9c6cd2c36f6945398b86b6042ff..0f6f7bf01644e2273ac806983d2803ed82297142 100644 --- a/audio/wavcapture.c +++ b/audio/wavcapture.c @@ -103,7 +103,8 @@ 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", bits); + term_printf ("incorrect channel count %d, must be 1 or 2\n", + nchannels); return -1; }