nausea

curses audio visualizer
git clone git://git.2f30.org/nausea
Log | Files | Refs | README | LICENSE

commit 588418c2bfb1e4da59ee614cdcf499a33ca1d1b2
parent ba1ca8d8c3496aecc297d90c97cf02f252376532
Author: lostd <lostd@2f30.org>
Date:   Fri, 29 Nov 2013 15:36:02 +0200

More informative error message on open

Diffstat:
Mspectrum.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spectrum.c b/spectrum.c @@ -74,7 +74,7 @@ init(struct frame *fr) { fr->fd = open(fname, O_RDONLY | O_NONBLOCK); if (fr->fd == -1) - err(1, "open"); + err(1, "open %s", fname); fr->buf = malloc(nsamples * sizeof(int16_t)); fr->res = malloc(nsamples / 2 * sizeof(unsigned));