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/extra/m_pgsql.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/extra/m_pgsql.cpp') diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index fc4ec23c1..71c4299de 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -306,8 +306,8 @@ public: bool HandleConnectError(const char* reason) { - ServerInstance->Logs.Error(MODNAME, "Could not connect to the \"%s\" database: %s", - GetId().c_str(), reason); + ServerInstance->Logs.Error(MODNAME, "Could not connect to the \"{}\" database: {}", + GetId(), reason); return false; } @@ -587,7 +587,7 @@ public: minor = revision; revision = 0; } - ServerInstance->Logs.Normal(MODNAME, "Module was compiled against libpq version %s and is running against version %d.%d.%d", + ServerInstance->Logs.Normal(MODNAME, "Module was compiled against libpq version {} and is running against version {}.{}.{}", PG_VERSION, version / 10000, minor, revision); } -- cgit v1.3.1-10-gc9f91