diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2015-04-13 14:31:35 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-06 18:55:29 +0100 |
commit | 1031bc589228ca35b3b6fb3dfe4656c0da5fbeb4 (patch) | |
tree | 52ad94e769ee16491c9db4e9904ac266292e4996 /fs/squashfs | |
parent | fs: use gendisk->disk_name where possible (diff) | |
download | linux-1031bc589228ca35b3b6fb3dfe4656c0da5fbeb4.tar.xz linux-1031bc589228ca35b3b6fb3dfe4656c0da5fbeb4.zip |
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 'fs/squashfs')
0 files changed, 0 insertions, 0 deletions