241@@ -242,9 +242,9 @@ void CAddrMan::Unserialize(Stream& s_)
242 const uint8_t lowest_compatible = compat - INCOMPATIBILITY_BASE;
243 if (lowest_compatible > FILE_FORMAT) {
244 throw std::ios_base::failure(strprintf(
245- "Unsupported format of addrman database: %u. It is compatible with formats >=%u, "
246- "but the maximum supported by this version of %s is %u.",
247- format, lowest_compatible, PACKAGE_NAME, static_cast<uint8_t>(FILE_FORMAT)));
248+ "Unsupported format of addrman database: %u. It is compatible with formats >=%u, "
249+ "but the maximum supported by this version of %s is %u.",
250+ uint8_t{format}, uint8_t{lowest_compatible}, PACKAGE_NAME, uint8_t{FILE_FORMAT}));
nit: also pinning lowest_compatible
seems unnecessary.
Correct. I did that for consistency.