aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/locking.c
diff options
context:
space:
mode:
authorBryan Ward <bcw@cs.unc.edu>2013-04-16 22:54:29 -0400
committerBryan Ward <bcw@cs.unc.edu>2013-04-16 22:54:29 -0400
commit7b28f49b60e39d44decba6e4018cb3f021355c69 (patch)
treef89de02ec89558174b05c35bd73a94901d854c71 /litmus/locking.c
parentd6ba4603c299657235ce49bbfb9542d3e4511c26 (diff)
Some debuging traces.
Diffstat (limited to 'litmus/locking.c')
-rw-r--r--litmus/locking.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/litmus/locking.c b/litmus/locking.c
index 665eef30fe0f..1d46d148e9e1 100644
--- a/litmus/locking.c
+++ b/litmus/locking.c
@@ -70,7 +70,11 @@ asmlinkage long sys_dynamic_group_lock(resource_mask_t lock_ods)
70 l = get_lock(entry); 70 l = get_lock(entry);
71 if (l->type == DGL_SEM){ 71 if (l->type == DGL_SEM){
72 err = l->ops->dynamic_group_lock(l, lock_ods); 72 err = l->ops->dynamic_group_lock(l, lock_ods);
73 }else{
74 TRACE("Attempted to DG-lock type: %d\n", l->type);
73 } 75 }
76 } else {
77 TRACE_CUR("Attempted to lock invalid entry %d\n", entry);
74 } 78 }
75 79
76 TS_LOCK_END; 80 TS_LOCK_END;
@@ -92,8 +96,10 @@ asmlinkage long sys_dynamic_group_unlock(resource_mask_t lock_ods)
92 if (l->type == DGL_SEM){ 96 if (l->type == DGL_SEM){
93 err = l->ops->dynamic_group_unlock(l, lock_ods); 97 err = l->ops->dynamic_group_unlock(l, lock_ods);
94 } else{ 98 } else{
95 TRACE_CUR("Wrong Type: %d\n", l->type); 99 TRACE_CUR("Attempted to DG-unlock type: %d\n", l->type);
96 } 100 }
101 } else {
102 TRACE_CUR("Attempted to unlock invalid entry %d\n", entry);
97 } 103 }
98 104
99 TS_UNLOCK_END; 105 TS_UNLOCK_END;