From: Andre Noll Date: Fri, 30 Nov 2007 21:45:19 +0000 (+0100) Subject: alsa_write: Print more detailed error message. X-Git-Tag: v0.3.0~74 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=025bd85e6a7c4618b4741762982b37df35eb7725;p=paraslash.git alsa_write: Print more detailed error message. --- diff --git a/alsa_write.c b/alsa_write.c index 3ad8f5df..fab886ca 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -184,12 +184,13 @@ static int alsa_write_post_select(__a_unused struct sched *s, return 1; ret = snd_pcm_writei(pad->handle, data, frames); if (ret == -EPIPE) { - PARA_WARNING_LOG("%s", "EPIPE\n"); + PARA_WARNING_LOG("EPIPE\n"); snd_pcm_prepare(pad->handle); return 1; } if (ret < 0) { - PARA_WARNING_LOG("%s", "ALSA ERROR\n"); + PARA_WARNING_LOG("alsa error (%zu frames, ret = %d\n", + frames, (int)ret); return -E_ALSA_WRITE; } ms2tv(pad->buffer_time / 4000, &tv);