aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/new_dynarec
diff options
context:
space:
mode:
authornotaz2012-12-09 19:58:34 +0200
committernotaz2012-12-09 19:58:40 +0200
commitf29fbd5358e28135d389e2218da7c90f8b94b983 (patch)
tree11111c29886726385f34eb122639e78f6c5b4447 /libpcsxcore/new_dynarec
parent8ad120c9c4dca424feac32098cb4af6a2c8f641f (diff)
downloadpcsx_rearmed-f29fbd5358e28135d389e2218da7c90f8b94b983.tar.gz
pcsx_rearmed-f29fbd5358e28135d389e2218da7c90f8b94b983.tar.bz2
pcsx_rearmed-f29fbd5358e28135d389e2218da7c90f8b94b983.zip
pipe error messages through single function
for easier redirection to file, logcat or whatever
Diffstat (limited to 'libpcsxcore/new_dynarec')
-rw-r--r--libpcsxcore/new_dynarec/pcsxmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpcsxcore/new_dynarec/pcsxmem.c b/libpcsxcore/new_dynarec/pcsxmem.c
index 88e8112..90f7765 100644
--- a/libpcsxcore/new_dynarec/pcsxmem.c
+++ b/libpcsxcore/new_dynarec/pcsxmem.c
@@ -34,7 +34,7 @@ static void map_item(u32 *out, const void *h, u32 flag)
{
u32 hv = (u32)h;
if (hv & 1) {
- fprintf(stderr, "FATAL: %p has LSB set\n", h);
+ SysPrintf("FATAL: %p has LSB set\n", h);
abort();
}
*out = (hv >> 1) | (flag << 31);
@@ -303,7 +303,7 @@ void new_dyna_pcsx_mem_init(void)
// have to map these further to keep tcache close to .text
mem_readtab = psxMap(0x08000000, 0x200000 * 4, 0, MAP_TAG_LUTS);
if (mem_readtab == NULL) {
- fprintf(stderr, "failed to map mem tables\n");
+ SysPrintf("failed to map mem tables\n");
exit(1);
}
mem_writetab = mem_readtab + 0x100000;