| commit | f4326920cfdae684cdd6e0eee9a1846ca9cd87a5 | [log] [tgz] |
|---|---|---|
| author | David Howells <dhowells@redhat.com> | Wed Jun 12 11:40:20 2013 +0100 |
| committer | David Howells <dhowells@redhat.com> | Thu Jun 13 23:36:39 2013 +0100 |
| tree | ae88e3d6d0a634e0e467ae75cea42b0c6e9490d8 | |
| parent | 934a9179b509e54348967cd03d922df62766b303 [diff] |
VFS: Add a %p modifier 'q' to printk for handling struct qstr *
Add a %p modifier 'q' to printk so that it can print the name held in struct
qstr pointed to by its argument:
void foo(struct dentry *d)
{
printk("dentry: %pq\n", &d->d_name);
}
printk() then knows how to find the length of the name in case the name is not
NUL-terminated.
Signed-off-by: David Howells <dhowells@redhat.com>