diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 23:12:13 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 23:54:21 (GMT) |
commit | d1826f2a3d64f76b18e9ac4a6874c5db5be24750 (patch) | |
tree | 7b69ceda50439632f982611f94e39998533b2526 /fs/efs/dir.c | |
parent | f403d1dbac6d1ef28f553f3996d5bb5cea90ce15 (diff) | |
download | linux-d1826f2a3d64f76b18e9ac4a6874c5db5be24750.tar.xz |
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 7f97031..ce63b24 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) inodenum = be32_to_cpu(dirslot->inode); namelen = dirslot->namelen; nameptr = dirslot->name; - -#ifdef DEBUG - 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); -#endif + pr_debug("%s(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", + __func__, block, slot, dirblock->slots-1, + inodenum, nameptr, namelen); if (!namelen) continue; /* found the next entry */ |