pw-cli: print pw_core errors

At the moment errors are printed using `pw_log_error()`, however, that does
not display them by default because `client.conf` sets `log.level=0`.

Use `fprintf()` and always print the errors.
This commit is contained in:
Barnabás Pőcze 2025-08-01 19:47:44 +02:00 committed by Wim Taymans
parent 5ecf27681e
commit 58d86cfb5f

View file

@ -556,8 +556,8 @@ static void on_core_error(void *_data, uint32_t id, int seq, int res, const char
struct remote_data *rd = _data;
struct data *data = rd->data;
pw_log_error("remote %p: error id:%u seq:%d res:%d (%s): %s", rd,
id, seq, res, spa_strerror(res), message);
fprintf(stderr, "remote %" PRIu32 ": error id:%" PRIu32 " seq:%d res:%d (%s): %s\n",
rd->id, id, seq, res, spa_strerror(res), message);
if (id == PW_ID_CORE && res == -EPIPE)
program_quit(data);