pulse-server: try to not put pointers in info messages

It's not very helpful, prefer to use human readable strings and move the
more techincal stuff in debug messages.
This commit is contained in:
Wim Taymans 2021-11-05 16:22:22 +01:00
parent 2f3e65c049
commit 743f699193
3 changed files with 71 additions and 96 deletions

View file

@ -144,8 +144,8 @@ int stream_send_underflow(struct stream *stream, int64_t offset, uint32_t underr
struct message *reply;
if (ratelimit_test(&impl->rate_limit, stream->timestamp, SPA_LOG_LEVEL_INFO)) {
pw_log_info("client %p [%s]: stream %p UNDERFLOW channel:%u offset:%" PRIi64 " underrun:%u",
client, client->name, stream, stream->channel, offset, underrun_for);
pw_log_info("[%s]: UNDERFLOW channel:%u offset:%" PRIi64 " underrun:%u",
client->name, stream->channel, offset, underrun_for);
}
reply = message_alloc(impl, -1, 0);
@ -194,9 +194,8 @@ int stream_send_killed(struct stream *stream)
COMMAND_PLAYBACK_STREAM_KILLED :
COMMAND_RECORD_STREAM_KILLED;
pw_log_info("client %p [%s]: stream %p %s channel:%u",
client, client->name, stream,
commands[command].name, stream->channel);
pw_log_info("[%s]: %s channel:%u",
client->name, commands[command].name, stream->channel);
if (client->version < 23)
return 0;