diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-05-24 14:29:35 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-05-24 14:29:35 +0000 |
commit | adb3a300b37fc1f29bd600f0301746410f95ddd3 (patch) | |
tree | b54e35d582c4fd2877ddeca7a4cf9bea3f3c8aff /sys/i386/linux/linux.h | |
parent | 9bdea082642c70895af67f721472319e62a04b4e (diff) | |
download | FreeBSD-src-adb3a300b37fc1f29bd600f0301746410f95ddd3.zip FreeBSD-src-adb3a300b37fc1f29bd600f0301746410f95ddd3.tar.gz |
In preparation for switching linuxulator to the use the native 1:1
threads print the thread id in addition to the pid in debug messages.
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r-- | sys/i386/linux/linux.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 27eff32..6f0ad29 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -40,8 +40,10 @@ */ extern u_char linux_debug_map[]; #define ldebug(name) isclr(linux_debug_map, LINUX_SYS_linux_ ## name) -#define ARGS(nm, fmt) "linux(%ld): "#nm"("fmt")\n", (long)td->td_proc->p_pid -#define LMSG(fmt) "linux(%ld): "fmt"\n", (long)td->td_proc->p_pid +#define ARGS(nm, fmt) "linux(%ld/%ld): "#nm"("fmt")\n", \ + (long)td->td_proc->p_pid, (long)td->td_tid +#define LMSG(fmt) "linux(%ld/%ld): "fmt"\n", \ + (long)td->td_proc->p_pid, (long)td->td_tid #define LINUX_DTRACE linuxulator #ifdef MALLOC_DECLARE |