]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - lib/vsprintf.c
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)
commit4b6ccca701ef5977d0ffbc2c932430dea88b38b6
treef8daa1243e24168fba2595c29805765856708673
parentcffe78d92c217a57f57ec6743f71adfe39ea543e
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