diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-22 00:19:04 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-22 00:19:04 +0100 |
commit | 40f2e21aa731c56353dc75a4ad4effcb88b41916 (patch) | |
tree | 416b698d1723018258ada0a128f3d4ea367166ad /src/modules | |
parent | a5c9546fc7e20cb1ea26fbe80b0ec26aab11b76e (diff) |
make gcc shut up a bit more
Diffstat (limited to 'src/modules')
-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; |