summaryrefslogtreecommitdiff
path: root/hurd/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/trace.h')
-rw-r--r--hurd/trace.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/hurd/trace.h b/hurd/trace.h
index 24c1c89..c566e9f 100644
--- a/hurd/trace.h
+++ b/hurd/trace.h
@@ -86,7 +86,15 @@ trace_buffer_add (const char *func, const int lineno,
ss_mutex_lock (&buffer->lock);
if (! buffer->notid)
- s_cprintf (pc, "%x:", l4_myself ());
+ {
+#ifdef USE_L4
+ s_cprintf (pc, "%x:", l4_myself ());
+#elif !defined (RM_INTERN)
+ s_cprintf (pc, "%x:", hurd_myself ());
+#else
+# warning Don't know how to get tid.
+#endif
+ }
s_cprintf (pc, "%s:%d: ", func, lineno);
va_start (ap, fmt);