kernel: print more details when trying to alert invalid process

This commit is contained in:
K. Lange 2022-03-04 22:09:31 +09:00
parent cd04af0a75
commit e37207828a

View File

@ -1164,7 +1164,9 @@ int process_alert_node_locked(process_t * process, void * value) {
must_have_lock(sleep_lock);
if (!is_valid_process(process)) {
printf("invalid process\n");
dprintf("core %d (pid=%d %s) attempted to alert invalid process %#zx\n",
this_core->cpu_id, this_core->current_process->id, this_core->current_process->name,
(uintptr_t)process);
return 0;
}