From 206d31de85192353d03c74766e80513a87dc49b4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 23 Jan 2023 23:48:09 +0000 Subject: Convert log calls to use fmtlib format strings --- src/modules/m_cap.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_cap.cpp') diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 25b09b4b5..c5d969cf4 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -101,7 +101,7 @@ class Cap::ManagerImpl final if (cap->creator != mod) continue; - ServerInstance->Logs.Debug(MODNAME, "Module being reloaded implements cap %s, saving cap users", cap->GetName().c_str()); + ServerInstance->Logs.Debug(MODNAME, "Module being reloaded implements cap {}, saving cap users", cap->GetName()); capmoddata->caps.emplace_back(cap); CapModData::Data& capdata = capmoddata->caps.back(); @@ -122,7 +122,7 @@ class Cap::ManagerImpl final Capability* cap = ManagerImpl::Find(capdata.name); if (!cap) { - ServerInstance->Logs.Debug(MODNAME, "Cap %s is no longer available after reload", capdata.name.c_str()); + ServerInstance->Logs.Debug(MODNAME, "Cap {} is no longer available after reload", capdata.name); continue; } @@ -132,7 +132,7 @@ class Cap::ManagerImpl final auto* user = ServerInstance->Users.FindUUID(uuid); if (!user) { - ServerInstance->Logs.Debug(MODNAME, "User %s is gone when trying to restore cap %s", uuid.c_str(), capdata.name.c_str()); + ServerInstance->Logs.Debug(MODNAME, "User {} is gone when trying to restore cap {}", uuid, capdata.name); continue; } @@ -165,7 +165,7 @@ public: if (cap->IsRegistered()) return; - ServerInstance->Logs.Debug(MODNAME, "Registering cap %s", cap->GetName().c_str()); + ServerInstance->Logs.Debug(MODNAME, "Registering cap {}", cap->GetName()); cap->bit = AllocateBit(); cap->extitem = &capext; caps.emplace(cap->GetName(), cap); @@ -180,7 +180,7 @@ public: if (!cap->IsRegistered()) return; - ServerInstance->Logs.Debug(MODNAME, "Unregistering cap %s", cap->GetName().c_str()); + ServerInstance->Logs.Debug(MODNAME, "Unregistering cap {}", cap->GetName()); // Fire the event first so modules can still see who is using the cap which is being unregistered evprov.Call(&Cap::EventListener::OnCapAddDel, cap, false); @@ -204,7 +204,7 @@ public: void NotifyValueChange(Capability* cap) override { - ServerInstance->Logs.Debug(MODNAME, "Cap %s changed value", cap->GetName().c_str()); + ServerInstance->Logs.Debug(MODNAME, "Cap {} changed value", cap->GetName()); evprov.Call(&Cap::EventListener::OnCapValueChange, cap); } -- cgit v1.3.1-10-gc9f91