[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1307643649.1340.8.camel@leonhard>
Date: Fri, 10 Jun 2011 03:20:49 +0900
From: Namhyung Kim <namhyung@...il.com>
To: Andrew Murray <amurray@...data.com>
Cc: joe@...ches.com, w.sang@...gutronix.de, geert@...ux-m68k.org,
linux-embedded@...r.kernel.org, linux-kernel@...r.kernel.org,
trivial@...nel.org, rdunlap@...otime.net, udknight@...il.com,
Andrew Murray <amurray@...-data.co.uk>
Subject: Re: [PATCH] printk-formats.txt documentation update
2011-06-09 (목), 19:04 +0100, Andrew Murray:
> From: Andrew Murray <amurray@...-data.co.uk>
>
> This patch updates the incomplete documentation concerning the printk
> extended format specifiers.
>
> Signed-off-by: Andrew Murray <amurray@...-data.co.uk>
> ---
> Documentation/printk-formats.txt | 119 +++++++++++++++++++++++++++++++++++++-
> 1 files changed, 117 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt
> index 1b5a5dd..69713d6 100644
> --- a/Documentation/printk-formats.txt
> +++ b/Documentation/printk-formats.txt
> @@ -9,7 +9,121 @@ If variable is of Type, use printk format specifier:
> size_t %zu or %zx
> ssize_t %zd or %zx
>
> -Raw pointer value SHOULD be printed with %p.
> +Raw pointer value SHOULD be printed with %p. The kernel supports
> +the following extended format specifiers for pointer types:
> +
> +Symbols/Function Pointers:
> +
> + %pF versatile_init+0x0/0x110
> + %pf versatile_init
> + %pS versatile_init+0x0/0x110
> + %ps versatile_init
> + %pB versatile_init+0x0/0x110
> +
-EBADEXAMPLE :)
If %pB is used, the offset part in the output could not be 0. That's the
key (and the only) difference of the %pB specifier than others. Thus the
output would be something like:
%pB prev_fn_of_versatile_init+0x88/0x88
Thanks.
--
Regards,
Namhyung Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists