From 025bd85e6a7c4618b4741762982b37df35eb7725 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 30 Nov 2007 22:45:19 +0100 Subject: [PATCH] alsa_write: Print more detailed error message. --- alsa_write.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.5