From: Jaroslav Kysela Date: Thu, 4 Oct 2001 16:49:29 +0000 (+0000) Subject: Update to suspend messages X-Git-Tag: v1.0.3~182 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3eab6faf292ab149fdcb32de63341d1698f2c0e6;p=alsa-utils.git Update to suspend messages --- diff --git a/aplay/aplay.c b/aplay/aplay.c index 1898f2a..f6ce57c 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -874,19 +874,19 @@ static void suspend(void) int res; if (!quiet_mode) - fprintf(stderr, "Suspended... Trying resume..."); fflush(stderr); + fprintf(stderr, "Suspended. Trying resume. "); fflush(stderr); while ((res = snd_pcm_resume(handle)) == -EAGAIN) sleep(1); /* wait until suspend flag is not released */ if (res < 0) { if (!quiet_mode) - fprintf(stderr, " Failed... Restarting stream..."); fflush(stderr); + fprintf(stderr, "Failed. Restarting stream. "); fflush(stderr); if ((res = snd_pcm_prepare(handle)) < 0) { error("suspend: prepare error: %s", snd_strerror(res)); exit(EXIT_FAILURE); } } if (!quiet_mode) - fprintf(stderr, "\n"); + fprintf(stderr, "Done.\n"); } /* peak handler */