diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -3636,7 +3636,7 @@ static int list_locations(struct kmem_cache *s, char *buf, | |||
3636 | len += sprintf(buf + len, "%7ld ", l->count); | 3636 | len += sprintf(buf + len, "%7ld ", l->count); |
3637 | 3637 | ||
3638 | if (l->addr) | 3638 | if (l->addr) |
3639 | len += sprint_symbol(buf + len, (unsigned long)l->addr); | 3639 | len += sprintf(buf + len, "%pS", (void *)l->addr); |
3640 | else | 3640 | else |
3641 | len += sprintf(buf + len, "<not-available>"); | 3641 | len += sprintf(buf + len, "<not-available>"); |
3642 | 3642 | ||
@@ -3946,12 +3946,9 @@ SLAB_ATTR(min_partial); | |||
3946 | 3946 | ||
3947 | static ssize_t ctor_show(struct kmem_cache *s, char *buf) | 3947 | static ssize_t ctor_show(struct kmem_cache *s, char *buf) |
3948 | { | 3948 | { |
3949 | if (s->ctor) { | 3949 | if (!s->ctor) |
3950 | int n = sprint_symbol(buf, (unsigned long)s->ctor); | 3950 | return 0; |
3951 | 3951 | return sprintf(buf, "%pS\n", s->ctor); | |
3952 | return n + sprintf(buf + n, "\n"); | ||
3953 | } | ||
3954 | return 0; | ||
3955 | } | 3952 | } |
3956 | SLAB_ATTR_RO(ctor); | 3953 | SLAB_ATTR_RO(ctor); |
3957 | 3954 | ||