From 0c5b85df8c5ae969831551ddefb8e07cb6da5f08 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 3 Feb 2020 21:43:15 +0000 Subject: Include the ABI version with the incompatible module error message. --- src/dynamic.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dynamic.cpp') diff --git a/src/dynamic.cpp b/src/dynamic.cpp index a3ba43ff2..e0d7f6d80 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -68,7 +68,7 @@ DLLManager::~DLLManager() Module* DLLManager::CallInit() { - const uint32_t* abi = GetSymbol(MODULE_STR_ABI); + const unsigned long* abi = GetSymbol(MODULE_STR_ABI); if (!abi) { err.assign(libname + " is not a module (no ABI symbol)"); @@ -77,9 +77,9 @@ Module* DLLManager::CallInit() else if (*abi != MODULE_ABI) { const char* version = GetVersion(); - err.assign(InspIRCd::Format("%s was built against %s which is too %s to use with %s", - libname.c_str(), version ? version : "an unknown version", - *abi < MODULE_ABI ? "old" : "new", INSPIRCD_VERSION)); + err.assign(InspIRCd::Format("%s was built against %s (%lu) which is too %s to use with %s (%lu).", + libname.c_str(), version ? version : "an unknown version", *abi, + *abi < MODULE_ABI ? "old" : "new", INSPIRCD_VERSION, MODULE_ABI)); return NULL; } -- cgit v1.2.3