improve debug

This commit is contained in:
Wim Taymans 2019-08-14 11:44:16 +02:00
parent 23812807ad
commit 6a8fe43a0c
5 changed files with 81 additions and 72 deletions

View file

@ -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;
}