Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230708
b: refs/heads/master
c: 62c70bc
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Jan 14, 2011
1 parent 4fd28d1 commit 75f3e91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 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: c32b0d4b3f19c2f5d29568f8b7b72b61693f1277
refs/heads/master: 62c70bce8ac236514c610020bb1ae5b8bde965cb
11 changes: 4 additions & 7 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -3636,7 +3636,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
len += sprintf(buf + len, "%7ld ", l->count);

if (l->addr)
len += sprint_symbol(buf + len, (unsigned long)l->addr);
len += sprintf(buf + len, "%pS", (void *)l->addr);
else
len += sprintf(buf + len, "<not-available>");

Expand Down Expand Up @@ -3946,12 +3946,9 @@ SLAB_ATTR(min_partial);

static ssize_t ctor_show(struct kmem_cache *s, char *buf)
{
if (s->ctor) {
int n = sprint_symbol(buf, (unsigned long)s->ctor);

return n + sprintf(buf + n, "\n");
}
return 0;
if (!s->ctor)
return 0;
return sprintf(buf, "%pS\n", s->ctor);
}
SLAB_ATTR_RO(ctor);

Expand Down
9 changes: 2 additions & 7 deletions trunk/mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2456,13 +2456,8 @@ static int s_show(struct seq_file *m, void *p)
seq_printf(m, "0x%p-0x%p %7ld",
v->addr, v->addr + v->size, v->size);

if (v->caller) {
char buff[KSYM_SYMBOL_LEN];

seq_putc(m, ' ');
sprint_symbol(buff, (unsigned long)v->caller);
seq_puts(m, buff);
}
if (v->caller)
seq_printf(m, " %pS", v->caller);

if (v->nr_pages)
seq_printf(m, " pages=%d", v->nr_pages);
Expand Down

0 comments on commit 75f3e91

Please sign in to comment.