diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2018-04-14 12:00:05 +0900 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2018-04-18 12:53:52 +0200 |
commit | cdb7e52d960a59f30de853f5dd85574432d6bb50 (patch) | |
tree | 68286413e16c8551c9929e9c1c45a9f797145c34 /lib | |
parent | 7e6bd6f3dcf913460a0a0ae7f260a8280001dd80 (diff) | |
download | linux-cdb7e52d960a59f30de853f5dd85574432d6bb50.tar.gz linux-cdb7e52d960a59f30de853f5dd85574432d6bb50.tar.bz2 linux-cdb7e52d960a59f30de853f5dd85574432d6bb50.zip |
vsprintf: Tweak pF/pf comment
Reflect changes that have happened to pf/pF (deprecation)
specifiers in pointer() comment section.
Link: http://lkml.kernel.org/r/20180414030005.25831-1-sergey.senozhatsky@gmail.com
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Joe Perches <joe@perches.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vsprintf.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 38a71df48d48..7649ef4ed7d0 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -1713,10 +1713,10 @@ static char *ptr_to_id(char *buf, char *end, void *ptr, struct printf_spec spec) * * Right now we handle: * - * - 'F' For symbolic function descriptor pointers with offset - * - 'f' For simple symbolic function names without offset - * - 'S' For symbolic direct pointers with offset - * - 's' For symbolic direct pointers without offset + * - 'S' For symbolic direct pointers (or function descriptors) with offset + * - 's' For symbolic direct pointers (or function descriptors) without offset + * - 'F' Same as 'S' + * - 'f' Same as 's' * - '[FfSs]R' as above with __builtin_extract_return_addr() translation * - 'B' For backtraced symbolic direct pointers with offset * - 'R' For decoded struct resource, e.g., [mem 0x0-0x1f 64bit pref] @@ -1813,10 +1813,6 @@ static char *ptr_to_id(char *buf, char *end, void *ptr, struct printf_spec spec) * ** When making changes please also update: * Documentation/core-api/printk-formats.rst * - * Note: The difference between 'S' and 'F' is that on ia64 and ppc64 - * function pointers are really function descriptors, which contain a - * pointer to the real address. - * * Note: The default behaviour (unadorned %p) is to hash the address, * rendering it useful as a unique identifier. */ |