diff options
Diffstat (limited to 'src/modules/oss')
-rw-r--r-- | src/modules/oss/oss-util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/oss/oss-util.c b/src/modules/oss/oss-util.c index f8e11fd2..ea8d8111 100644 --- a/src/modules/oss/oss-util.c +++ b/src/modules/oss/oss-util.c @@ -45,6 +45,7 @@ int pa_oss_open(const char *device, int *mode, int* pcaps) { int fd = -1; int caps; + char *t; pa_assert(device); pa_assert(mode); @@ -92,7 +93,8 @@ int pa_oss_open(const char *device, int *mode, int* pcaps) { success: - pa_log_debug("capabilities:%s%s%s%s%s%s%s%s%s%s%s%s%s%s", + t = pa_sprintf_malloc( + "%s%s%s%s%s%s%s%s%s%s%s%s%s%s", *pcaps & DSP_CAP_BATCH ? " BATCH" : "", #ifdef DSP_CAP_BIND *pcaps & DSP_CAP_BIND ? " BIND" : "", @@ -140,6 +142,9 @@ success: #endif *pcaps & DSP_CAP_TRIGGER ? " TRIGGER" : ""); + pa_log_debug("capabilities:%s", t); + pa_xfree(t); + pa_make_fd_cloexec(fd); return fd; |