diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-09-13 02:33:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-13 14:41:50 -0700 |
commit | 665020c35e89a9e0643e21561e4f8f967f4f2c4b (patch) | |
tree | 23bb7ce5516918da4732e8b9b20d07d93de96a7a /fs/proc | |
parent | a551b98d5f6fce5897d497abd8bfb262efb33d2a (diff) | |
download | op-kernel-dev-665020c35e89a9e0643e21561e4f8f967f4f2c4b.zip op-kernel-dev-665020c35e89a9e0643e21561e4f8f967f4f2c4b.tar.gz |
proc: more debugging for "already registered" case
Print parent directory name as well.
The aim is to catch non-creation of parent directory when proc_mkdir will
return NULL and all subsequent registrations go directly in /proc instead
of intended directory.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
[ Fixed insane printk string while at it. - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index bca0f81..7821589 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -547,8 +547,8 @@ static int proc_register(struct proc_dir_entry * dir, struct proc_dir_entry * dp for (tmp = dir->subdir; tmp; tmp = tmp->next) if (strcmp(tmp->name, dp->name) == 0) { - printk(KERN_WARNING "proc_dir_entry '%s' already " - "registered\n", dp->name); + printk(KERN_WARNING "proc_dir_entry '%s/%s' already registered\n", + dir->name, dp->name); dump_stack(); break; } |