+2015-06-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
+ constant string.
+
2015-06-18 Mike Frysinger <vapier@gentoo.org>
* callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
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);
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])",