summaryrefslogtreecommitdiff
path: root/Documentation/printk-formats.txt
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2015-04-13 12:31:35 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2016-01-06 17:55:29 (GMT)
commit1031bc589228ca35b3b6fb3dfe4656c0da5fbeb4 (patch)
tree52ad94e769ee16491c9db4e9904ac266292e4996 /Documentation/printk-formats.txt
parent424081f3c881ca3aef50cfa571e91863c10d952a (diff)
downloadlinux-1031bc589228ca35b3b6fb3dfe4656c0da5fbeb4.tar.xz
lib/vsprintf: add %*pg format specifier
This allow to directly print block_device name. Currently one should use bdevname() with temporal char buffer. This is very ineffective because bloat stack usage for deep IO call-traces Example: %pg -> sda, sda1 or loop0p1 [AV: fixed a minor braino - position updates should not be dependent upon having reached the of buffer] Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation/printk-formats.txt')
-rw-r--r--Documentation/printk-formats.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt
index b784c27..6389551 100644
--- a/Documentation/printk-formats.txt
+++ b/Documentation/printk-formats.txt
@@ -250,6 +250,12 @@ dentry names:
Passed by reference.
+block_device names:
+
+ %pg sda, sda1 or loop0p1
+
+ For printing name of block_device pointers.
+
struct va_format:
%pV