implement proper logging

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@179 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-09-05 00:03:16 +00:00
parent 57e473b61c
commit 6c4fd62040
50 changed files with 416 additions and 225 deletions

View file

@ -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;
}