Messages in this thread | | | From | OGAWA Hirofumi <> | Subject | Re: [PATCH 2/8] slub: Replace ctor field with ops field in /sys/slab/* | Date | Sun, 20 Jul 2008 02:47:56 +0900 |
| |
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:
> Pekka J Enberg <penberg@cs.helsinki.fi> writes: > >> + if (s->ctor) { >> + x += sprintf(buf + x, "ctor : "); >> + x += sprint_symbol(buf + x, (unsigned long)s->ctor); >> + x += sprintf(buf + x, "\n"); > > How about new "%pS" like following for it? If CONFIG_KALLSYMS=n, it has > difference though... > > x += sprintf(buf + x, "ctor : %pS\n", (unsigned long)s->ctor);
Oops, it should be pointer.
x += sprintf(buf + x, "ctor : %pS\n", s->ctor); -- OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
| |