From 44913609c8caad7aa8e8240b75273f7e8dc148de Mon Sep 17 00:00:00 2001 From: Carter Bray Date: Sun, 31 Jul 2016 17:02:02 -0700 Subject: [PATCH] Fix format string warnings --- library/LuaApi.cpp | 2 +- library/VTableInterpose.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 387ac4d97..df077ccc1 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -2373,7 +2373,7 @@ static int internal_setAddress(lua_State *L) // Print via printerr, so that it is definitely logged to stderr.log. uintptr_t iaddr = addr - Core::getInstance().vinfo->getRebaseDelta(); - fprintf(stderr, "Setting global '%s' to %x (%x)\n", name.c_str(), addr, iaddr); + fprintf(stderr, "Setting global '%s' to %p (%p)\n", name.c_str(), (void*)addr, (void*)iaddr); fflush(stderr); return 1; diff --git a/library/VTableInterpose.cpp b/library/VTableInterpose.cpp index 96cbfff9c..c547800c2 100644 --- a/library/VTableInterpose.cpp +++ b/library/VTableInterpose.cpp @@ -309,7 +309,7 @@ VMethodInterposeLinkBase::VMethodInterposeLinkBase(virtual_identity *host, int v */ fprintf(stderr, "Bad VMethodInterposeLinkBase arguments: %d %p (%s)\n", - vmethod_idx, uintptr_t(interpose_method), name_str); + vmethod_idx, interpose_method, name_str); fflush(stderr); abort(); }