summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/yagl/yagl_log.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/yagl/yagl_log.h b/hw/yagl/yagl_log.h
index 8a8a7a58c6..4479108f58 100644
--- a/hw/yagl/yagl_log.h
+++ b/hw/yagl/yagl_log.h
@@ -123,10 +123,12 @@ bool yagl_log_is_enabled_for_func_tracing(void);
} \
} while(0)
+// TODO _yagl_log_current_pid/tid must be restored to proper form
+// PID/TID must be read in a different way than via global cur_ts
#define YAGL_LOG_FUNC_SET(func) \
const char* _yagl_log_current_func = #func; \
- yagl_pid _yagl_log_current_pid = (cur_ts ? cur_ts->ps->id : 0); \
- yagl_tid _yagl_log_current_tid = (cur_ts ? cur_ts->id : 0)
+ yagl_pid _yagl_log_current_pid = 0; \
+ yagl_tid _yagl_log_current_tid = 0
#define YAGL_LOG_FUNC_ENTER(func, format, ...) \
YAGL_LOG_FUNC_SET(func); \