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/cli.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/cli.c')
-rw-r--r-- | polyp/cli.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/polyp/cli.c b/polyp/cli.c index 6fd2c2387..09e9855dc 100644 --- a/polyp/cli.c +++ b/polyp/cli.c @@ -42,6 +42,7 @@ #include "cli-text.h" #include "cli-command.h" #include "xmalloc.h" +#include "log.h" struct pa_cli { struct pa_core *core; @@ -103,7 +104,7 @@ static void client_kill(struct pa_client *client) { assert(client && client->userdata); c = client->userdata; - fprintf(stderr, "CLI client killed.\n"); + pa_log(__FILE__": CLI client killed.\n"); if (c->defer_kill) c->kill_requested = 1; else { @@ -119,7 +120,7 @@ static void line_callback(struct pa_ioline *line, const char *s, void *userdata) assert(line && c); if (!s) { - fprintf(stderr, "CLI got EOF from user.\n"); + pa_log(__FILE__": CLI got EOF from user.\n"); if (c->eof_callback) c->eof_callback(c, c->userdata); |