use more libfmt instead of sprintf()

This commit is contained in:
Max Kellermann
2023-03-06 18:47:08 +01:00
parent 02d108774c
commit 415de497d3
18 changed files with 76 additions and 115 deletions

View File

@@ -54,7 +54,7 @@ DecoderUriDecode(const DecoderPlugin &plugin,
{
const ScopeUnlock unlock(bridge.dc.mutex);
FormatThreadName("decoder:%s", plugin.name);
FmtThreadName("decoder:{}", plugin.name);
plugin.UriDecode(bridge, uri);
@@ -98,7 +98,7 @@ decoder_stream_decode(const DecoderPlugin &plugin,
{
const ScopeUnlock unlock(bridge.dc.mutex);
FormatThreadName("decoder:%s", plugin.name);
FmtThreadName("decoder:{}", plugin.name);
plugin.StreamDecode(bridge, input_stream);
@@ -135,7 +135,7 @@ decoder_file_decode(const DecoderPlugin &plugin,
{
const ScopeUnlock unlock(bridge.dc.mutex);
FormatThreadName("decoder:%s", plugin.name);
FmtThreadName("decoder:{}", plugin.name);
plugin.FileDecode(bridge, path);