diff --git a/core/logic/DebugReporter.cpp b/core/logic/DebugReporter.cpp index 4d733b5f1..d8e58199e 100644 --- a/core/logic/DebugReporter.cpp +++ b/core/logic/DebugReporter.cpp @@ -129,7 +129,7 @@ void DebugReport::GenerateCodeError(IPluginContext *pContext, uint32_t code_addr { g_Logger.LogError("[SM] Unable to call function \"%s\" due to above error(s).", name); } else { - g_Logger.LogError("[SM] Unable to call function (name unknown, address \"%x\").", code_addr); + g_Logger.LogError("[SM] Unable to call function (name unknown, address \"%p\").", code_addr); } } diff --git a/core/logic/smn_core.cpp b/core/logic/smn_core.cpp index 51f02f2dd..67bf66c89 100644 --- a/core/logic/smn_core.cpp +++ b/core/logic/smn_core.cpp @@ -875,7 +875,7 @@ static cell_t LoadFromAddress(IPluginContext *pContext, const cell_t *params) } else if (reinterpret_cast(addr) < VALID_MINIMUM_MEMORY_ADDRESS) { - return pContext->ThrowNativeError("Invalid address 0x%x is pointing to reserved memory.", addr); + return pContext->ThrowNativeError("Invalid address %p is pointing to reserved memory.", addr); } NumberType size = static_cast(params[2]); @@ -907,7 +907,7 @@ static cell_t StoreToAddress(IPluginContext *pContext, const cell_t *params) } else if (reinterpret_cast(addr) < VALID_MINIMUM_MEMORY_ADDRESS) { - return pContext->ThrowNativeError("Invalid address 0x%x is pointing to reserved memory.", addr); + return pContext->ThrowNativeError("Invalid address %p is pointing to reserved memory.", addr); } cell_t data = params[2]; diff --git a/core/smn_entities.cpp b/core/smn_entities.cpp index 073545ace..c23f9b911 100644 --- a/core/smn_entities.cpp +++ b/core/smn_entities.cpp @@ -736,7 +736,7 @@ static cell_t LoadEntityFromHandleAddress(IPluginContext *pContext, const cell_t } else if (reinterpret_cast(addr) < VALID_MINIMUM_MEMORY_ADDRESS) { - return pContext->ThrowNativeError("Invalid address 0x%x is pointing to reserved memory.", addr); + return pContext->ThrowNativeError("Invalid address %p is pointing to reserved memory.", addr); } CBaseHandle &hndl = *reinterpret_cast(addr); diff --git a/extensions/sdktools/vcaller.cpp b/extensions/sdktools/vcaller.cpp index 326563d98..7236edf18 100644 --- a/extensions/sdktools/vcaller.cpp +++ b/extensions/sdktools/vcaller.cpp @@ -406,7 +406,7 @@ static cell_t SDKCall(IPluginContext *pContext, const cell_t *params) else if (reinterpret_cast(thisptr) < VALID_MINIMUM_MEMORY_ADDRESS) { vc->stk_put(ptr); - return pContext->ThrowNativeError("Invalid ThisPtr address 0x%x is pointing to reserved memory.", thisptr); + return pContext->ThrowNativeError("Invalid ThisPtr address %p is pointing to reserved memory.", thisptr); } *(void **)ptr = thisptr;