aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-02-05 13:50:23 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-02-05 13:50:23 -0500
commit2e5c4482a4104da4e7cda6b3588f840a2c598741 (patch)
tree3aa62a4fb965c4d021a7b4bab03693f32ac8167a /include
parentea8b0dcf5e02f0bee2ab9ed6c32b81075e4a6f36 (diff)
parentc7cd5432b98df518b05bc8978d34382797fd9a05 (diff)
Merge branch 'prop/misc-fixes' into wip-2012.3-gpu
Diffstat (limited to 'include')
-rw-r--r--include/litmus/debug_trace.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/litmus/debug_trace.h b/include/litmus/debug_trace.h
index 48d086d5a44c..1266ac6a760c 100644
--- a/include/litmus/debug_trace.h
+++ b/include/litmus/debug_trace.h
@@ -28,8 +28,11 @@ extern atomic_t __log_seq_no;
28 TRACE_ARGS, ## args) 28 TRACE_ARGS, ## args)
29 29
30#define TRACE_TASK(t, fmt, args...) \ 30#define TRACE_TASK(t, fmt, args...) \
31 TRACE("(%s/%d:%d) " fmt, (t)->comm, (t)->pid, \ 31 TRACE("(%s/%d:%d) " fmt, \
32 (t)->rt_param.job_params.job_no, ##args) 32 t ? (t)->comm : "null", \
33 t ? (t)->pid : 0, \
34 t ? (t)->rt_param.job_params.job_no : 0, \
35 ##args)
33 36
34#define TRACE_CUR(fmt, args...) \ 37#define TRACE_CUR(fmt, args...) \
35 TRACE_TASK(current, fmt, ## args) 38 TRACE_TASK(current, fmt, ## args)