printk: synchronize %p formatting documentation
authorMartin Kletzander <[email protected]>
Sat, 7 Nov 2015 00:30:17 +0000 (16:30 -0800)
committerLinus Torvalds <[email protected]>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commit5e4ee7b13b522d07196e737f399843c58569604d
tree7f5b7b73d3b5548ef681f35b29363fdf4fc93205
parent3e406b1d7c1e5c14c84a71eb4bee5f46ba690401
printk: synchronize %p formatting documentation

Move all pointer-formatting documentation to one place in the code and one
place in the documentation instead of keeping it in three places with
different level of completeness.  Documentation/printk-formats.txt has
detailed information about each modifier, docstring above pointer() has
short descriptions of them (as that is the function dealing with %p) and
docstring above vsprintf() is removed as redundant.  Both docstrings in
the code that were modified are updated with a reminder of updating the
documentation upon any further change.

[[email protected]: fix comment]
Signed-off-by: Martin Kletzander <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/printk-formats.txt
lib/vsprintf.c