diff --git a/runtime/track_memory_map.c b/runtime/track_memory_map.c index 2665d9974..3d02b709d 100644 --- a/runtime/track_memory_map.c +++ b/runtime/track_memory_map.c @@ -837,7 +837,8 @@ bool track_memory_map(pid_t pid, int *exit_status_out, enum trace_mode mode) { return false; } } else if (!is_op_permitted(map, event, &event_info)) { - fprintf(stderr, "forbidden operation requested: %s\n", event_name(event)); + fprintf(stderr, "forbidden operation requested: "); + print_event(event, &event_info); return_syscall_eperm(waited_pid); if (ptrace(continue_request, waited_pid, 0, 0) < 0) { perror("could not PTRACE_SYSCALL");