Merge remote-tracking branch 'upstream/v0.23.x'

This commit is contained in:
Michael Herstine
2025-01-20 09:44:07 -08:00
27 changed files with 222 additions and 109 deletions

View File

@@ -16,7 +16,7 @@ WriteIdleResponse(Response &r, unsigned flags) noexcept
const char *const*idle_names = idle_get_names();
for (unsigned i = 0; idle_names[i]; ++i) {
if (flags & (1 << i))
r.Fmt(FMT_STRING("changed: {}\n"), idle_names[i]);
r.Fmt("changed: {}\n", idle_names[i]);
}
r.Write("OK\n");

View File

@@ -46,7 +46,7 @@ Response::WriteBinary(std::span<const std::byte> payload) noexcept
void
Response::Error(enum ack code, const char *msg) noexcept
{
Fmt(FMT_STRING("ACK [{}@{}] {{{}}} "),
Fmt("ACK [{}@{}] {{{}}} ",
(int)code, list_index, command);
Write(msg);
@@ -57,7 +57,7 @@ void
Response::VFmtError(enum ack code,
fmt::string_view format_str, fmt::format_args args) noexcept
{
Fmt(FMT_STRING("ACK [{}@{}] {{{}}} "),
Fmt("ACK [{}@{}] {{{}}} ",
(int)code, list_index, command);
VFmt(format_str, args);