Re: [PATCH 2/8] slub: Replace ctor field with ops field in /sys/slab/*
From: OGAWA Hirofumi
Date: Sat Jul 19 2008 - 13:48:17 EST
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> writes:
> 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);
Oops, it should be pointer.
x += sprintf(buf + x, "ctor : %pS\n", 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/