From: Andre Noll Date: Thu, 13 Jun 2013 16:34:04 +0000 (+0200) Subject: Merge branch 't/oss_error_message_fix' X-Git-Tag: v0.4.13~30 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=a28eef552dc779eac12c1df430522dc4e20ae428;hp=d46a0767b58654f15f16406cf99296287bd0d534 Merge branch 't/oss_error_message_fix' 9e32ff oss mixer: Improve error message. --- diff --git a/oss_mix.c b/oss_mix.c index 9fe86504..5182ad23 100644 --- a/oss_mix.c +++ b/oss_mix.c @@ -56,8 +56,10 @@ static int oss_mix_open(const char *dev, struct mixer_handle **handle) dev = "/dev/mixer"; PARA_INFO_LOG("opening %s\n", dev); ret = para_open(dev, O_RDWR, 42); - if (ret < 0) + if (ret < 0) { + PARA_ERROR_LOG("could not open %s\n", dev); return ret; + } h = para_malloc(sizeof(*h)); h->fd = ret; *handle = h;