From 6c4fd620408b3f14a1d4164d58db70df7a252674 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 5 Sep 2004 00:03:16 +0000 Subject: implement proper logging git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@179 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/cpulimit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'polyp/cpulimit.c') diff --git a/polyp/cpulimit.c b/polyp/cpulimit.c index 7d6fa861..fc49f5bb 100644 --- a/polyp/cpulimit.c +++ b/polyp/cpulimit.c @@ -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; } -- cgit