aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-syscall.c')
-rw-r--r--sim/common/sim-syscall.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sim/common/sim-syscall.c b/sim/common/sim-syscall.c
index 6f4c8a3..ff5e5d2 100644
--- a/sim/common/sim-syscall.c
+++ b/sim/common/sim-syscall.c
@@ -60,7 +60,7 @@ sim_syscall_multi (SIM_CPU *cpu, int func, long arg1, long arg2, long arg3,
SIM_DESC sd = CPU_STATE (cpu);
host_callback *cb = STATE_CALLBACK (sd);
CB_SYSCALL sc;
- char unknown_syscall[30];
+ const char unknown_syscall[] = "<UNKNOWN SYSCALL>";
const char *syscall;
CB_SYSCALL_INIT (&sc);
@@ -85,10 +85,7 @@ sim_syscall_multi (SIM_CPU *cpu, int func, long arg1, long arg2, long arg3,
syscall = cb_target_str_syscall (cb, func);
if (!syscall)
- {
- sprintf (unknown_syscall, "syscall_%i", func);
- syscall = unknown_syscall;
- }
+ syscall = unknown_syscall;
if (sc.result == -1)
TRACE_SYSCALL (cpu, "%s[%i](%#lx, %#lx, %#lx) = %li (error = %s[%i])",