mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04: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 "modargs.h"
|
||||
#include "protocol-native.h"
|
||||
#include "log.h"
|
||||
|
||||
static const char* const valid_modargs[] = {
|
||||
"fd",
|
||||
|
|
@ -46,12 +47,12 @@ int pa_module_init(struct pa_core *c, struct pa_module*m) {
|
|||
assert(c && m);
|
||||
|
||||
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
|
||||
fprintf(stderr, __FILE__": failed to parse module arguments.\n");
|
||||
pa_log(__FILE__": failed to parse module arguments.\n");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (pa_modargs_get_value_s32(ma, "fd", &fd) < 0) {
|
||||
fprintf(stderr, __FILE__": invalid file descriptor.\n");
|
||||
pa_log(__FILE__": invalid file descriptor.\n");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue