2013-10-23 08:13:20

by Niels de Vos

[permalink] [raw]
Subject: [TRIVIAL PATCH] exportfs: use dprintk() for debug message

All of the debug messages in reconnect_path() use dprintk(), except for
one. Users have no idea what "reconnect_path: npd != pd" means, or how
to act on it. This message without the other dprintk() output is near to
useless anyway, so use dprintk() instead of printk() for it.

Signed-off-by: Niels de Vos <[email protected]>
---
fs/exportfs/expfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c
index a235f00..49ce614 100644
--- a/fs/exportfs/expfs.c
+++ b/fs/exportfs/expfs.c
@@ -189,7 +189,7 @@ reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf)
if (npd == pd)
noprogress = 0;
else
- printk("%s: npd != pd\n", __func__);
+ dprintk("%s: npd != pd\n", __func__);
dput(npd);
dput(ppd);
if (IS_ROOT(pd)) {
--
1.7.1