aboutsummaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-11-12 15:09:50 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:14 +0200
commita6d9f43547b1453dca4f6f6d43b94a1c36c2d84a (patch)
treebeded230722f72b0426903ae30a8e937f9da56c5 /lib/vsprintf.c
parent7e931eb6902cd37a743433e8275549bddb886bb5 (diff)
lib/vsprintf.c: document formats for dentry and struct file
Looks like these were added to Documentation/printk-formats.txt but not the in-file table. Signed-off-by: Olof Johansson <olof@lixom.net> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r--lib/vsprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index da3aa3cbb..4eb792561 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -1116,6 +1116,8 @@ int kptr_restrict __read_mostly;
* The maximum supported length is 64 bytes of the input. Consider
* to use print_hex_dump() for the larger input.
* - 'a' For a phys_addr_t type and its derivative types (passed by reference)
+ * - 'd[234]' For a dentry name (optionally 2-4 last components)
+ * - 'D[234]' Same as 'd' but for a struct file
*
* Note: The difference between 'S' and 'F' is that on ia64 and ppc64
* function pointers are really function descriptors, which contain a