mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
implement proper logging
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@179 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
57e473b61c
commit
6c4fd62040
50 changed files with 416 additions and 225 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "iochannel.h"
|
||||
#include "cli.h"
|
||||
#include "sioman.h"
|
||||
#include "log.h"
|
||||
|
||||
static void eof_cb(struct pa_cli*c, void *userdata) {
|
||||
struct pa_module *m = userdata;
|
||||
|
|
@ -44,12 +45,12 @@ int pa_module_init(struct pa_core *c, struct pa_module*m) {
|
|||
assert(c && m);
|
||||
|
||||
if (m->argument) {
|
||||
fprintf(stderr, __FILE__": module doesn't accept arguments.\n");
|
||||
pa_log(__FILE__": module doesn't accept arguments.\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (pa_stdio_acquire() < 0) {
|
||||
fprintf(stderr, __FILE__": STDIN/STDUSE already in use.\n");
|
||||
pa_log(__FILE__": STDIN/STDUSE already in use.\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue