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

@ -30,6 +30,7 @@
#include "cpulimit.h"
#include "util.h"
#include "log.h"
/* Utilize this much CPU time at maximum */
#define CPUTIME_PERCENT 70
@ -126,7 +127,7 @@ int pa_cpu_limit_init(struct pa_mainloop_api *m) {
time(&last_time);
if (pipe(the_pipe) < 0) {
fprintf(stderr, "pipe() failed: %s\n", strerror(errno));
pa_log(__FILE__": pipe() failed: %s\n", strerror(errno));
return -1;
}