mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
webrtc: Avoid using dynamic strings as format strings
Properly call format functions, dynamic strings shouldn't be passed as format strings. Instead a format string of "%s" should be used, with the dynamic string as it's argument. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/563>
This commit is contained in:
parent
a7c2cad4bf
commit
c096193512
1 changed files with 4 additions and 4 deletions
|
|
@ -98,13 +98,13 @@ class PaWebrtcTraceCallback : public webrtc::TraceCallback {
|
||||||
void Print(webrtc::TraceLevel level, const char *message, int length)
|
void Print(webrtc::TraceLevel level, const char *message, int length)
|
||||||
{
|
{
|
||||||
if (level & webrtc::kTraceError || level & webrtc::kTraceCritical)
|
if (level & webrtc::kTraceError || level & webrtc::kTraceCritical)
|
||||||
pa_log(message);
|
pa_log("%s", message);
|
||||||
else if (level & webrtc::kTraceWarning)
|
else if (level & webrtc::kTraceWarning)
|
||||||
pa_log_warn(message);
|
pa_log_warn("%s", message);
|
||||||
else if (level & webrtc::kTraceInfo)
|
else if (level & webrtc::kTraceInfo)
|
||||||
pa_log_info(message);
|
pa_log_info("%s", message);
|
||||||
else
|
else
|
||||||
pa_log_debug(message);
|
pa_log_debug("%s", message);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue