From 80e0e865109e15dc9e177c7bed60e15a59f86a69 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Fri, 11 Aug 2000 21:02:34 +0000 Subject: [PATCH] Slightly better failure diagnostic --- aplay/aplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index c24fa56..9f3aa67 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -808,7 +808,7 @@ static void set_params(void) params.frames_fill_max = 1024; params.frames_xrun_max = 0; if (snd_pcm_params(handle, ¶ms) < 0) { - fprintf(stderr, "%s: unable to set params\n", command); + fprintf(stderr, "%s: unable to set params (where=%x, why=%x)\n", command, params.fail_mask, params.fail_reason); exit(EXIT_FAILURE); } if (mmap_flag) {