Commit c408face authored by Simon Marlow's avatar Simon Marlow
Browse files

fix an error message (barf -> sysErrorBelch)

parent 0a7fe9ef
......@@ -30,7 +30,8 @@ void setExecutable (void *p, lnat len, rtsBool exec)
exec ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE,
&dwOldProtect) == 0)
{
barf("makeExecutable: failed to protect 0x%p; error=%lu; old protection: %lu\n",
p, (unsigned long)GetLastError(), (unsigned long)dwOldProtect);
sysErrorBelch("makeExecutable: failed to protect 0x%p; old protection: %lu\n",
p, (unsigned long)dwOldProtect);
stg_exit(EXIT_FAILURE);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment