lkml.org 
[lkml]   [2008]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/8] slub: Replace ctor field with ops field in /sys/slab/*
Date
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>


\
 
 \ /
  Last update: 2008-07-19 19:51    [W:0.031 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site