From: Andre Noll Date: Wed, 16 May 2012 13:21:10 +0000 (+0200) Subject: oss: Add proper error message on init. X-Git-Tag: v0.4.11~20 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=52071c963c318f979fd1ba37ba4dc4523c65d428 oss: Add proper error message on init. If the device node of the sound device (/dev/dsp) does not exist, we currently fail with a "no such file or directory" error message without mentioning the name of the device. This adds a log message which clarifies what went wrong. --- diff --git a/oss_write.c b/oss_write.c index f075ce50..f1e90199 100644 --- a/oss_write.c +++ b/oss_write.c @@ -152,6 +152,8 @@ err: close(powd->fd); err_free: free(powd); + PARA_ERROR_LOG("failed to init %s: %s\n", conf->device_arg, + para_strerror(-ret)); return ret; }