From: Manish Katiyar Date: Fri, 18 Sep 2009 20:05:43 +0000 (-0700) Subject: fs/inode.c: add dev-id and inode number for debugging in init_special_inode() X-Git-Tag: v2.6.32-rc1~58^2~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=af0d9ae811d11de8a01d6bc922c5e062be01bd7f;p=karo-tx-linux.git 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 Cc: Andreas Dilger Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Al Viro --- diff --git a/fs/inode.c b/fs/inode.c index 76582b06ab97..07d775ea6161 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -1599,7 +1599,8 @@ void init_special_inode(struct inode *inode, umode_t mode, dev_t rdev) else if (S_ISSOCK(mode)) inode->i_fop = &bad_sock_fops; else - printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o)\n", - mode); + printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o) for" + " inode %s:%lu\n", mode, inode->i_sb->s_id, + inode->i_ino); } EXPORT_SYMBOL(init_special_inode);