From 9650e05b92507a725c6c45eb979795d683e6e639 Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Sun, 20 May 2001 05:22:46 +0000 Subject: [PATCH] Add some actual debugging for mprotect --- zsnes/src/linux/protect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsnes/src/linux/protect.c b/zsnes/src/linux/protect.c index 02a5c79b..0f21de7a 100644 --- a/zsnes/src/linux/protect.c +++ b/zsnes/src/linux/protect.c @@ -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)