aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-02-20 13:32:46 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-02-20 13:32:46 -0500
commit6987dcbc8945509db8a11d0408a9e2cc5036cbce (patch)
treef84b627345f8610ba61151a5e8f187cc6a4b6141
parent4d628f66d82caa8514db22cba00f1a6d0bf64d40 (diff)
Fix DGL trace messages
-rw-r--r--litmus/locking.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/litmus/locking.c b/litmus/locking.c
index 73ebde3e8957..c6eda968411f 100644
--- a/litmus/locking.c
+++ b/litmus/locking.c
@@ -400,7 +400,7 @@ static long do_litmus_dgl_lock(dgl_wait_state_t *dgl_wait)
400#ifdef CONFIG_SCHED_DEBUG_TRACE 400#ifdef CONFIG_SCHED_DEBUG_TRACE
401 { 401 {
402 char dglstr[MAX_DGL_SIZE*5]; 402 char dglstr[MAX_DGL_SIZE*5];
403 snprintf_dgl(dglstr, sizeof(dgl_wait->size*5), dgl_wait->locks, dgl_wait->size); 403 snprintf_dgl(dglstr, dgl_wait->size*5, dgl_wait->locks, dgl_wait->size);
404 TRACE_CUR("Locking DGL with size %d: %s\n", dgl_wait->size, dglstr); 404 TRACE_CUR("Locking DGL with size %d: %s\n", dgl_wait->size, dglstr);
405 } 405 }
406#endif 406#endif
@@ -480,7 +480,7 @@ static long do_litmus_dgl_atomic_lock(dgl_wait_state_t *dgl_wait)
480#ifdef CONFIG_SCHED_DEBUG_TRACE 480#ifdef CONFIG_SCHED_DEBUG_TRACE
481 { 481 {
482 char dglstr[MAX_DGL_SIZE*5]; 482 char dglstr[MAX_DGL_SIZE*5];
483 snprintf_dgl(dglstr, sizeof(dgl_wait->size*5), dgl_wait->locks, dgl_wait->size); 483 snprintf_dgl(dglstr, dgl_wait->size*5, dgl_wait->locks, dgl_wait->size);
484 TRACE_CUR("Atomic locking DGL with size %d: %s\n", dgl_wait->size, dglstr); 484 TRACE_CUR("Atomic locking DGL with size %d: %s\n", dgl_wait->size, dglstr);
485 } 485 }
486#endif 486#endif
@@ -631,7 +631,7 @@ static long do_litmus_dgl_unlock(struct litmus_lock* dgl_locks[], int dgl_size)
631#ifdef CONFIG_SCHED_DEBUG_TRACE 631#ifdef CONFIG_SCHED_DEBUG_TRACE
632 { 632 {
633 char dglstr[MAX_DGL_SIZE*5]; 633 char dglstr[MAX_DGL_SIZE*5];
634 snprintf_dgl(dglstr, sizeof(dgl_wait->size*5), dgl_locks, dgl_size); 634 snprintf_dgl(dglstr, dgl_size*5, dgl_locks, dgl_size);
635 TRACE_CUR("Unlocking a DGL with size %d: %s\n", dgl_size, dglstr); 635 TRACE_CUR("Unlocking a DGL with size %d: %s\n", dgl_size, dglstr);
636 } 636 }
637#endif 637#endif