From: Christophe Lohr Date: Mon, 1 Jun 2015 11:43:36 +0000 (+0200) Subject: test/pcm_min: Fix error messages X-Git-Tag: v1.1.0~71 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=8551fe258791c165892583006b0aa5142f41b621;p=alsa-lib.git test/pcm_min: Fix error messages Fix the wrongly referred error code for error messages from snd_pcm_writei() and other calls. Signed-off-by: Takashi Iwai --- diff --git a/test/pcm_min.c b/test/pcm_min.c index e971405e..7462a45f 100644 --- a/test/pcm_min.c +++ b/test/pcm_min.c @@ -39,7 +39,7 @@ int main(void) if (frames < 0) frames = snd_pcm_recover(handle, frames, 0); if (frames < 0) { - printf("snd_pcm_writei failed: %s\n", snd_strerror(err)); + printf("snd_pcm_writei failed: %s\n", snd_strerror(frames)); break; } if (frames > 0 && frames < (long)sizeof(buffer))