From: Abramo Bagnara Date: Thu, 8 Mar 2001 14:20:00 +0000 (+0000) Subject: Fixes for pcm_list X-Git-Tag: v1.0.3~237 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3031ae4ec70c0886b17f4dd13fc00fe3e410bf2d;p=alsa-utils.git Fixes for pcm_list --- diff --git a/aplay/aplay.c b/aplay/aplay.c index 09e524a..c6f1ad9 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -239,14 +239,16 @@ static void pcm_list(void) snd_config_t *conf; snd_output_t *out; int err = snd_config_update(); - if (err < 0) - error("snd_pcm_update: %s", snd_strerror(err)); + if (err < 0) { + error("snd_config_update: %s", snd_strerror(err)); + return; + } err = snd_output_stdio_attach(&out, stderr, 0); assert(err >= 0); err = snd_config_search(snd_config, "pcm", &conf); if (err < 0) return; - fprintf(stderr, "PCM list:"); + fprintf(stderr, "PCM list:\n"); snd_config_save(conf, out); snd_output_close(out); }