Commit af0d9ae811d11de8a01d6bc922c5e062be01bd7f

Authored by Manish Katiyar
Committed by Al Viro
1 parent 14be27460e

fs/inode.c: add dev-id and inode number for debugging in init_special_inode()

Add device-id and inode number for better debugging.  This was suggested
by Andreas in one of the threads
http://article.gmane.org/gmane.comp.file-systems.ext4/12062 .

"If anyone has a chance, fixing this error message to be not-useless would
be good...  Including the device name and the inode number would help
track down the source of the problem."

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Cc: Andreas Dilger <adilger@sun.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff

... ... @@ -1599,8 +1599,9 @@
1599 1599 else if (S_ISSOCK(mode))
1600 1600 inode->i_fop = &bad_sock_fops;
1601 1601 else
1602   - printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o)\n",
1603   - mode);
  1602 + printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o) for"
  1603 + " inode %s:%lu\n", mode, inode->i_sb->s_id,
  1604 + inode->i_ino);
1604 1605 }
1605 1606 EXPORT_SYMBOL(init_special_inode);