From be55be7dcb830213b21b4dc9fcfeba193e776435 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 29 Dec 2013 16:08:06 -0800 Subject: [PATCH] Fix some formatting warnings. --- Core/Config.cpp | 2 +- Core/HLE/sceKernelMemory.cpp | 2 +- Core/MemMap.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index ffe1f865b6..4307ab3289 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -473,7 +473,7 @@ void Config::Save() { pinnedPaths->Clear(); for (size_t i = 0; i < vPinnedPaths.size(); ++i) { char keyName[64]; - snprintf(keyName, sizeof(keyName), "Path%d", i); + snprintf(keyName, sizeof(keyName), "Path%d", (int)i); pinnedPaths->Set(keyName, vPinnedPaths[i]); } diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index 7ad6eda327..c3c035e491 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -1550,7 +1550,7 @@ u32 AllocMemoryBlock(const char *pname, u32 type, u32 size, u32 paramsAddr) { if (!block->IsValid()) { delete block; - ERROR_LOG(SCEKERNEL, "AllocMemoryBlock(%s, %i, %08x, %08x): allocation failed"); + ERROR_LOG(SCEKERNEL, "AllocMemoryBlock(%s, %i, %08x, %08x): allocation failed", pname, type, size, paramsAddr); return SCE_KERNEL_ERROR_MEMBLOCK_ALLOC_FAILED; } SceUID uid = kernelObjects.Create(block); diff --git a/Core/MemMap.cpp b/Core/MemMap.cpp index 9af4b58d8b..fcb3c1c8a6 100644 --- a/Core/MemMap.cpp +++ b/Core/MemMap.cpp @@ -188,7 +188,7 @@ Opcode Read_Instruction(u32 address, bool resolveReplacements) return Opcode(op); } } else { - ERROR_LOG(HLE, "Replacement, but no replacement op? %08x", inst); + ERROR_LOG(HLE, "Replacement, but no replacement op? %08x", inst.encoding); } } return inst;