*: let libfmt quote strings

This commit is contained in:
Max Kellermann
2024-04-16 11:06:34 +02:00
parent 39c9e92f42
commit 0c1ecc96a8
71 changed files with 160 additions and 160 deletions

View File

@@ -55,16 +55,16 @@ input_stream_global_init(const ConfigData &config, EventLoop &event_loop)
input_plugins_enabled[i] = true;
} catch (const PluginUnconfigured &e) {
FmtDebug(input_domain,
"Input plugin '{}' is not configured: {}",
"Input plugin {:?} is not configured: {}",
plugin->name, e.what());
continue;
} catch (const PluginUnavailable &e) {
FmtDebug(input_domain,
"Input plugin '{}' is unavailable: {}",
"Input plugin {:?} is unavailable: {}",
plugin->name, e.what());
continue;
} catch (...) {
std::throw_with_nested(FmtRuntimeError("Failed to initialize input plugin '{}'",
std::throw_with_nested(FmtRuntimeError("Failed to initialize input plugin {:?}",
plugin->name));
}
}

View File

@@ -256,13 +256,13 @@ AlsaInputStream::Recover(int err)
switch(err) {
case -EPIPE:
FmtDebug(alsa_input_domain,
"Overrun on ALSA capture device \"{}\"",
"Overrun on ALSA capture device {:?}",
device);
break;
case -ESTRPIPE:
FmtDebug(alsa_input_domain,
"ALSA capture device \"{}\" was suspended",
"ALSA capture device {:?} was suspended",
device);
break;
}

View File

@@ -28,7 +28,7 @@ OpenArchiveInputStream(Path path, Mutex &mutex)
}
} catch (...) {
FmtDebug(input_domain,
"not an archive, lookup '{}' failed: {}",
"not an archive, lookup {:?} failed: {}",
path, std::current_exception());
return nullptr;
}