diff --git a/kernel/calls.c b/kernel/calls.c index 8ce40a5a14..3aa00425b0 100644 --- a/kernel/calls.c +++ b/kernel/calls.c @@ -249,11 +249,11 @@ void handle_interrupt(int interrupt) { if (interrupt == INT_SYSCALL) { unsigned syscall_num = cpu->eax; if (syscall_num >= NUM_SYSCALLS || syscall_table[syscall_num] == NULL) { - printk("%d missing syscall %d\n", current->pid, syscall_num); + printk("%d(%s) missing syscall %d\n", current->pid, current->comm, syscall_num); deliver_signal(current, SIGSYS_, SIGINFO_NIL); } else { if (syscall_table[syscall_num] == (syscall_t) syscall_stub) { - printk("%d stub syscall %d\n", current->pid, syscall_num); + printk("%d(%s) stub syscall %d\n", current->pid, current->comm, syscall_num); } STRACE("%d call %-3d ", current->pid, syscall_num); int result = syscall_table[syscall_num](cpu->ebx, cpu->ecx, cpu->edx, cpu->esi, cpu->edi, cpu->ebp);