aboutsummaryrefslogtreecommitdiffstats
path: root/src/base.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 23:48:09 +0000
committerGravatar Sadie Powell2023-01-24 00:12:57 +0000
commit206d31de85192353d03c74766e80513a87dc49b4 (patch)
tree24fdee802c85c29b66a04901147d019e92e30931 /src/base.cpp
parentConvert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. (diff)
downloadinspircd++-206d31de85192353d03c74766e80513a87dc49b4.tar.gz
inspircd++-206d31de85192353d03c74766e80513a87dc49b4.tar.bz2
inspircd++-206d31de85192353d03c74766e80513a87dc49b4.zip
Convert log calls to use fmtlib format strings
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 11afe17f1..a77dec862 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -50,15 +50,19 @@ refcountbase::refcountbase()
refcountbase::~refcountbase()
{
if (refcount && ServerInstance)
- ServerInstance->Logs.Debug("CULLLIST", "refcountbase::~ @%p with refcount %d",
- static_cast<void*>(this), refcount);
+ {
+ ServerInstance->Logs.Debug("CULLLIST", "refcountbase::~ @{} with refcount {}",
+ fmt::ptr(this), refcount);
+ }
}
usecountbase::~usecountbase()
{
if (usecount && ServerInstance)
- ServerInstance->Logs.Debug("CULLLIST", "usecountbase::~ @%p with refcount %d",
- static_cast<void*>(this), usecount);
+ {
+ ServerInstance->Logs.Debug("CULLLIST", "usecountbase::~ @{} with refcount {}",
+ fmt::ptr(this), usecount);
+ }
}
void ServiceProvider::RegisterService()