From 3816d4104ac6141dbf57eaeebbd78eb86faaba05 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 6 Jul 2019 22:24:27 -0700 Subject: [PATCH] ircd::m::sync: Fix loghead/console formatting. --- ircd/m.cc | 4 +++- modules/console.cc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ircd/m.cc b/ircd/m.cc index cdd8b3c75..92e4d3e25 100644 --- a/ircd/m.cc +++ b/ircd/m.cc @@ -816,12 +816,14 @@ ircd::m::sync::loghead(const data &data) return fmt::sprintf { - headbuf, "%s %s %ld:%lu|%lu chunk:%zu sent:%s of %s in %s", + headbuf, "%s %s %ld:%lu|%lu%s chunk:%zu sent:%s of %s in %s", remstr, string_view{data.user.user_id}, data.range.first, data.range.second, vm::sequence::retired, + data.phased? + "|P"_sv : ""_sv, flush_count, ircd::pretty(iecbuf[1], iec(flush_bytes)), data.out? diff --git a/modules/console.cc b/modules/console.cc index e8d76975f..92c5492cd 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -5413,7 +5413,7 @@ console_cmd__client__sync(opt &out, const string_view &line) { const auto *const &client(data_p->client); if(client) - out << client->loghead() << " < "; + out << client->loghead() << " | "; out << m::sync::loghead(*data_p) << " | "; out << std::endl;