mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
improve debug
This commit is contained in:
parent
23812807ad
commit
6a8fe43a0c
5 changed files with 81 additions and 72 deletions
|
|
@ -63,7 +63,7 @@ int main(int argc, char *argv[])
|
|||
{"name", 1, NULL, 'n'},
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
int c;
|
||||
int c, res;
|
||||
|
||||
pw_init(&argc, &argv);
|
||||
|
||||
|
|
@ -119,8 +119,8 @@ int main(int argc, char *argv[])
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (pw_daemon_config_run_commands(config, core) < 0) {
|
||||
pw_log_error("failed to run config commands");
|
||||
if ((res = pw_daemon_config_run_commands(config, core)) < 0) {
|
||||
pw_log_error("failed to run config commands: %s", spa_strerror(res));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue