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
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);
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>


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