Fix format string warnings

develop
Carter Bray 2016-07-31 17:02:02 -07:00
parent 9da2dcb8a2
commit 44913609c8
2 changed files with 2 additions and 2 deletions

@ -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;

@ -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();
}