diff options
Diffstat (limited to 'litmus/locking.c')
-rw-r--r-- | litmus/locking.c | 8 |
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; |