]> git.baikalelectronics.ru Git - kernel.git/commit
add formats for dentry/file pathnames
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 3 Sep 2013 16:00:44 +0000 (12:00 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Sep 2013 04:13:11 +0000 (00:13 -0400)
commit2f6ce46289f282cd9ecdbd6097b2136c514788cc
treef8daa1243e24168fba2595c29805765856708673
parent40941129d3b811a7f22d393041f3600531293417
add formats for dentry/file pathnames

New formats: %p[dD][234]?.  The next pointer is interpreted as struct dentry *
or struct file * resp. ('d' => dentry, 'D' => file) and the last component(s)
of pathname are printed (%pd => just the last one, %pd2 => the last two, etc.)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/printk-formats.txt
lib/vsprintf.c