diff options
| author | 2023-01-23 09:37:15 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:07:53 +0000 | |
| commit | 7edc627317599950cbbc7442f5d0c781203a014b (patch) | |
| tree | 4a38b88b01459eb21c49c16e0eed7ad18b59d083 /src/modules/m_codepage.cpp | |
| parent | Replace InspIRCd::Format with fmt::format. (diff) | |
Replace VAFORMAT/InspIRCd::Format/... with fmt::sprintf.
Diffstat (limited to 'src/modules/m_codepage.cpp')
| -rw-r--r-- | src/modules/m_codepage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index 245e86849..a77a565cc 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -280,7 +280,7 @@ public: { case Codepage::AllowCharacterResult::OKAY: ServerInstance->Logs.Debug(MODNAME, "Marked %lu (%.4s) as allowed (front: %s)", - pos, reinterpret_cast<unsigned char*>(&pos), front ? "yes" : "no"); + pos, fmt::ptr(&pos), front ? "yes" : "no"); break; case Codepage::AllowCharacterResult::NOT_VALID: @@ -308,7 +308,7 @@ public: throw ModuleException(this, "Malformed <cpcase> tag at " + tag->source.str()); ServerInstance->Logs.Debug(MODNAME, "Marked %lu (%.4s) as the lower case version of %lu (%.4s)", - lower, reinterpret_cast<unsigned char*>(&lower), upper, reinterpret_cast<unsigned char*>(&upper)); + lower, fmt::ptr(&lower), upper, fmt::ptr(&upper)); } charset = codepagetag->getString("charset"); |
