diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-05 00:03:16 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-05 00:03:16 +0000 |
commit | 6c4fd620408b3f14a1d4164d58db70df7a252674 (patch) | |
tree | 3767a0fb76a3941267f9b6980075149dc31cb6bc /polyp/pdispatch.c | |
parent | 57e473b61cf373f8d9befb03d359b999eca4262b (diff) |
implement proper logging
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@179 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/pdispatch.c')
-rw-r--r-- | polyp/pdispatch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/polyp/pdispatch.c b/polyp/pdispatch.c index 22f5da09..23bdf68b 100644 --- a/polyp/pdispatch.c +++ b/polyp/pdispatch.c @@ -31,6 +31,7 @@ #include "native-common.h" #include "xmalloc.h" #include "llist.h" +#include "log.h" /*#define DEBUG_OPCODES*/ @@ -173,7 +174,7 @@ int pa_pdispatch_run(struct pa_pdispatch *pd, struct pa_packet*packet, void *use goto finish; #ifdef DEBUG_OPCODES - fprintf(stderr, __FILE__": Recieved opcode <%s>\n", command_names[command]); + pa_log(__FILE__": Recieved opcode <%s>\n", command_names[command]); #endif if (command == PA_COMMAND_ERROR || command == PA_COMMAND_REPLY) { @@ -191,7 +192,7 @@ int pa_pdispatch_run(struct pa_pdispatch *pd, struct pa_packet*packet, void *use c->proc(pd, command, tag, ts, userdata); } else { - fprintf(stderr, "Recieved unsupported command %u\n", command); + pa_log(__FILE__": Recieved unsupported command %u\n", command); goto finish; } |