Replace some fmt::format with fmt::append

This commit is contained in:
Eladash 2023-10-27 04:09:00 +03:00 committed by Elad Ashkenazi
parent c41130080d
commit 2db607c716
5 changed files with 35 additions and 39 deletions

View file

@ -351,10 +351,10 @@ void MetadataInfo::Show() const
std::string iv_pad_str;
for (int i = 0; i < 0x10; i++)
{
key_str += fmt::format("%02x", key[i]);
key_pad_str += fmt::format("%02x", key_pad[i]);
iv_str += fmt::format("%02x", iv[i]);
iv_pad_str += fmt::format("%02x", iv_pad[i]);
fmt::append(key_str, "%02x", key[i]);
fmt::append(key_pad_str, "%02x", key_pad[i]);
fmt::append(iv_str, "%02x", iv[i]);
fmt::append(iv_pad_str, "%02x", iv_pad[i]);
}
self_log.notice("Key: %s", key_str.c_str());