Re: [PATCH 1/3] ftrace: graph of a single function

From: Andrew Morton
Date: Wed Dec 03 2008 - 16:08:57 EST


On Wed, 03 Dec 2008 15:36:57 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> +static int g_show(struct seq_file *m, void *v)
> +{
> + unsigned long *ptr = v;
> + char str[KSYM_SYMBOL_LEN];
> +
> + if (!ptr)
> + return 0;
> +
> + kallsyms_lookup(*ptr, NULL, NULL, NULL, str);
> +
> + seq_printf(m, "%s\n", str);

Can we use %pF here?

> + return 0;
> +}
--
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/