diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:12:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:21 -0400 |
commit | d1826f2a3d64f76b18e9ac4a6874c5db5be24750 (patch) | |
tree | 7b69ceda50439632f982611f94e39998533b2526 /fs/efs/dir.c | |
parent | f403d1dbac6d1ef28f553f3996d5bb5cea90ce15 (diff) |
fs/efs: convert printk(KERN_DEBUG to pr_debug
All KERN_DEBUG callsites being under #ifdef DEBUG we can safely convert
everything to pr_debug without changing current behaviour.
Remove #ifdef DEBUG around pr_debugs only (suggested by Joe Perches)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/efs/dir.c')
-rw-r--r-- | fs/efs/dir.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/efs/dir.c b/fs/efs/dir.c index 7f970315b6c3..ce63b24f7c3e 100644 --- a/fs/efs/dir.c +++ b/fs/efs/dir.c | |||
@@ -71,10 +71,9 @@ static int efs_readdir(struct file *file, struct dir_context *ctx) | |||
71 | inodenum = be32_to_cpu(dirslot->inode); | 71 | inodenum = be32_to_cpu(dirslot->inode); |
72 | namelen = dirslot->namelen; | 72 | namelen = dirslot->namelen; |
73 | nameptr = dirslot->name; | 73 | nameptr = dirslot->name; |
74 | 74 | pr_debug("%s(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", | |
75 | #ifdef DEBUG | 75 | __func__, block, slot, dirblock->slots-1, |
76 | printk(KERN_DEBUG "EFS: readdir(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", block, slot, dirblock->slots-1, inodenum, nameptr, namelen); | 76 | inodenum, nameptr, namelen); |
77 | #endif | ||
78 | if (!namelen) | 77 | if (!namelen) |
79 | continue; | 78 | continue; |
80 | /* found the next entry */ | 79 | /* found the next entry */ |