X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/46091a9237f17f4295dca7140d8d70b4fce8b357..68d50dc0a6cf6886d0d6e01447bf15f3411c739f:/polyp/cli.c?ds=sidebyside diff --git a/polyp/cli.c b/polyp/cli.c index f0ad4830..09e9855d 100644 --- a/polyp/cli.c +++ b/polyp/cli.c @@ -39,9 +39,10 @@ #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);