summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-08-22 12:46:05 +0000
committerPierre Ossman <ossman@cendio.se>2006-08-22 12:46:05 +0000
commit26bfce6281f475d04f122dee6a711c7c00496614 (patch)
tree3742dea06f4c6a8bdd87c14bc919e6caade2e6c1
parentcf7b401ac61f7dd3b30adba2660a3ea4059f4677 (diff)
Improve error messages a bit.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1320 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/daemon/main.c4
-rw-r--r--src/pulsecore/core-util.c2
-rw-r--r--src/pulsecore/core.c5
3 files changed, 8 insertions, 3 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 8b816b9a..5d77282c 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -559,8 +559,10 @@ int main(int argc, char *argv[]) {
mainloop = pa_mainloop_new();
assert(mainloop);
- if (!(c = pa_core_new(pa_mainloop_get_api(mainloop), !conf->disable_shm)))
+ if (!(c = pa_core_new(pa_mainloop_get_api(mainloop), !conf->disable_shm))) {
+ pa_log("pa_core_new() failed.");
goto finish;
+ }
c->is_system_instance = !!conf->system_instance;
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index b504b6d3..5f72b342 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -184,7 +184,7 @@ int pa_make_secure_dir(const char* dir, mode_t m, uid_t uid, gid_t gid) {
goto fail;
}
#else
- fprintf(stderr, "FIXME: pa_make_secure_dir()\n");
+ pa_log_warn("secure directory creation not supported on Win32.");
#endif
return 0;
diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c
index c36a35bd..1a7382e5 100644
--- a/src/pulsecore/core.c
+++ b/src/pulsecore/core.c
@@ -41,6 +41,7 @@
#include <pulsecore/core-subscribe.h>
#include <pulsecore/props.h>
#include <pulsecore/random.h>
+#include <pulsecore/log.h>
#include "core.h"
@@ -48,8 +49,10 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) {
pa_core* c;
pa_mempool *pool;
- if (!(pool = pa_mempool_new(shared)))
+ if (!(pool = pa_mempool_new(shared))) {
+ pa_log("pa_mempool_new() failed.");
return NULL;
+ }
c = pa_xnew(pa_core, 1);