From 52071c963c318f979fd1ba37ba4dc4523c65d428 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 16 May 2012 15:21:10 +0200 Subject: [PATCH] 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. --- oss_write.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2