@@ -142,13 +142,6 @@ static void print_invalid_call(const char *fxn, const struct lock_context *where
142
142
where -> line );
143
143
}
144
144
145
- #define GENERATE_LOCK_MASK_ARGS (i ) \
146
- ((i)->magic != (uintptr_t) (i)) ? 'M' : '.'
147
- #define GENERATE_RW_MASK_ARGS (l ) \
148
- ((l)->info.magic != (uintptr_t) &(l)->info) ? 'M' : '.'
149
- #define GENERATE_COND_MASK_ARGS (c ) \
150
- ((c)->info.magic != (uintptr_t) &(c)->info) ? 'M' : '.'
151
-
152
145
static void print_synch_as (struct lock_info * info ,
153
146
const struct lock_context * where ,
154
147
enum synch_type type )
@@ -198,11 +191,13 @@ static void print_held_locks(struct held_lock *highlight)
198
191
for_each_held_lock (i , cur ) {
199
192
struct lock_info * info = cur -> info ;
200
193
struct lock * lock = container_of (info , struct lock , info );
194
+ char synch_chars [2 ];
201
195
202
- cmn_err (CE_CRIT , "lockdep: %s #%zd: %s (%p) <%c > acquired at %s:%d" ,
196
+ cmn_err (CE_CRIT , "lockdep: %s #%zd: %s (%p) %s <%s > acquired at %s:%d" ,
203
197
(cur == highlight ) ? "->" : " " ,
204
198
i , info -> name , lock ,
205
- GENERATE_LOCK_MASK_ARGS (info ),
199
+ synch_type_str (info -> type ),
200
+ get_synch_chars (info , synch_chars ),
206
201
cur -> where .file , cur -> where .line );
207
202
}
208
203
}
0 commit comments