diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-11-19 09:34:35 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-11-19 09:35:03 +0100 |
commit | 1754dce141db6f79dbdc4f616f9d85204758b3fb (patch) | |
tree | 3403dedaf005ac69530bef607918b8857c259003 /ipc/ipc_space.h | |
parent | 383379ae770fd6a74c592006f46986320df9fa30 (diff) | |
download | gnumach-1754dce141db6f79dbdc4f616f9d85204758b3fb.tar.gz gnumach-1754dce141db6f79dbdc4f616f9d85204758b3fb.tar.bz2 gnumach-1754dce141db6f79dbdc4f616f9d85204758b3fb.zip |
ipc_entry_lookup_failed: Also write message id in bogus port warning
It may be enough to get an idea of the origin of the port without having
to produce a stack trace.
Diffstat (limited to 'ipc/ipc_space.h')
-rw-r--r-- | ipc/ipc_space.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/ipc_space.h b/ipc/ipc_space.h index 22460877..9b199de3 100644 --- a/ipc/ipc_space.h +++ b/ipc/ipc_space.h @@ -159,11 +159,11 @@ ipc_entry_lookup( extern volatile boolean_t mach_port_deallocate_debug; static inline void -ipc_entry_lookup_failed(mach_port_name_t name) +ipc_entry_lookup_failed(mach_msg_header_t *msg, mach_port_name_t name) { if (name == MACH_PORT_NULL || name == MACH_PORT_DEAD) return; - printf("task %.*s looked up a bogus port %lu, most probably a bug.\n", (int) sizeof current_task()->name, current_task()->name, (unsigned long) name); + printf("task %.*s looked up a bogus port %lu for %d, most probably a bug.\n", (int) sizeof current_task()->name, current_task()->name, (unsigned long) name, msg->msgh_id); if (mach_port_deallocate_debug) SoftDebugger("ipc_entry_lookup"); } |