projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
d46a076
)
Merge branch 't/oss_error_message_fix'
author
Andre Noll
<maan@systemlinux.org>
Thu, 13 Jun 2013 16:34:04 +0000
(18:34 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Thu, 13 Jun 2013 16:34:04 +0000
(18:34 +0200)
9e32ff oss mixer: Improve error message.
oss_mix.c
patch
|
blob
|
history
diff --git
a/oss_mix.c
b/oss_mix.c
index 9fe865045a8e96006813d48b4dc0ff59164dd460..5182ad238b81f706ebac2f6abdcaec3859b809dc 100644
(file)
--- 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;