Add some actual debugging for mprotect

This commit is contained in:
theoddone33
2001-05-20 05:22:46 +00:00
parent 1bff8c0bdf
commit 9650e05b92

View File

@@ -146,7 +146,7 @@ void MakeCodeWriteable (unsigned long startaddr, unsigned long length)
r = mprotect ((char *) addr, length + startaddr - addr + psize, 7);
if (r < 0)
fprintf (stderr, "Error! Memory *NOT* unprotected.\n");
fprintf (stderr, "Error! Memory *NOT* unprotected. startaddr = 0x%08lx\n", startaddr);
}
void UnProtectMemory(void)