Skip to content

Commit

Permalink
Merge pull request ish-app#1668 from emkey1/enhance_stub_syscall_dmesg
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt authored Jan 4, 2022
2 parents 802f717 + 012a72b commit 1c1be5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c1be5c

Please sign in to comment.