diff options
-rw-r--r-- | sim/m32r/traps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/m32r/traps.c b/sim/m32r/traps.c index 80c4360..51fe0d4 100644 --- a/sim/m32r/traps.c +++ b/sim/m32r/traps.c @@ -843,7 +843,8 @@ m32r_trap (SIM_CPU *current_cpu, PCADDR pc, int num) break; case TARGET_LINUX_SYS_syslog: - result = syslog (arg1, (char *) t2h_addr (cb, &s, arg2)); + syslog (arg1, "%s", (char *) t2h_addr (cb, &s, arg2)); + result = 0; errcode = errno; break; |