mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-13 05:33:55 -04:00
pipewire: module-roc-{sink,source}: fix log format string issues
Passing an unknown string as the format string is unsafe, so don't do it.
Fixes: b9922d8ed5 ("module-roc: forward roc-toolkit logs to pipewire logs")
This commit is contained in:
parent
d8b06f94ee
commit
d7c3e8c2bc
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ static void pw_roc_log_handler(const roc_log_message *message, void *argument)
|
||||||
{
|
{
|
||||||
const enum spa_log_level log_level = pw_roc_log_level_roc_2_pw(message->level);
|
const enum spa_log_level log_level = pw_roc_log_level_roc_2_pw(message->level);
|
||||||
if (SPA_UNLIKELY(pw_log_topic_enabled(log_level, roc_log_topic))) {
|
if (SPA_UNLIKELY(pw_log_topic_enabled(log_level, roc_log_topic))) {
|
||||||
pw_log_logt(log_level, roc_log_topic, message->file, message->line, message->module, message->text, "");
|
pw_log_logt(log_level, roc_log_topic, message->file, message->line, message->module, "%s", message->text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue