|
@@ -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>");
|
|
|
|
|
@@ -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);
|
|
|
|