Re: [PATCH 2/8] slub: Replace ctor field with ops field in /sys/slab/*

From: OGAWA Hirofumi
Date: Sat Jul 19 2008 - 13:44:42 EST


Pekka J Enberg <penberg@xxxxxxxxxxxxxx> 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);
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/