Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42794
b: refs/heads/master
c: b23984d
h: refs/heads/master
v: v3
  • Loading branch information
Jarek Poplawski authored and Linus Torvalds committed Dec 7, 2006
1 parent 99c0069 commit a206341
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 910b1b2e6d7d10e1c3bffdd12a90ec82f535f9a5
refs/heads/master: b23984d0a12a4821b2e9712c71550f321eb88bb5
9 changes: 6 additions & 3 deletions trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ get_usage_chars(struct lock_class *class, char *c1, char *c2, char *c3, char *c4

static void print_lock_name(struct lock_class *class)
{
char str[128], c1, c2, c3, c4;
char str[KSYM_NAME_LEN + 1], c1, c2, c3, c4;
const char *name;

get_usage_chars(class, &c1, &c2, &c3, &c4);
Expand All @@ -381,7 +381,7 @@ static void print_lock_name(struct lock_class *class)
static void print_lockdep_cache(struct lockdep_map *lock)
{
const char *name;
char str[128];
char str[KSYM_NAME_LEN + 1];

name = lock->name;
if (!name)
Expand Down Expand Up @@ -451,7 +451,9 @@ static void print_lock_dependencies(struct lock_class *class, int depth)
print_lock_class_header(class, depth);

list_for_each_entry(entry, &class->locks_after, entry) {
DEBUG_LOCKS_WARN_ON(!entry->class);
if (DEBUG_LOCKS_WARN_ON(!entry->class))
return;

print_lock_dependencies(entry->class, depth + 1);

printk("%*s ... acquired at:\n",depth,"");
Expand Down Expand Up @@ -1733,6 +1735,7 @@ static int mark_lock(struct task_struct *curr, struct held_lock *this,
debug_atomic_dec(&nr_unused_locks);
break;
default:
__raw_spin_unlock(&hash_lock);
debug_locks_off();
WARN_ON(1);
return 0;
Expand Down

0 comments on commit a206341

Please sign in to comment.