]> code.delx.au - pulseaudio/blobdiff - polyp/cli.c
add sample spec parameters to pacat
[pulseaudio] / polyp / cli.c
index f0ad48309197d4b8d6a84544919d378983d7a2b1..09e9855dc7f675035c5c0619a470b7e2ebcf7623 100644 (file)
 #include "tokenizer.h"
 #include "strbuf.h"
 #include "namereg.h"
-#include "clitext.h"
+#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);