patch-1.3.28 linux/fs/sysv/dir.c

Next file: linux/fs/sysv/ialloc.c
Previous file: linux/fs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/fs/sysv/dir.c linux/fs/sysv/dir.c
@@ -96,8 +96,10 @@
 				memcpy(&sde, de, sizeof(struct sysv_dir_entry));
 
 				if (sde.inode > inode->i_sb->sv_ninodes)
-					printk("sysv_readdir: Bad inode number on dev 0x%04x, ino %ld, offset 0x%04lx: %d is out of range\n",
-						inode->i_dev, inode->i_ino, (off_t) filp->f_pos, sde.inode);
+					printk("sysv_readdir: Bad inode number on dev "
+					       "%s, ino %ld, offset 0x%04lx: %d is out of range\n",
+					       kdevname(inode->i_dev),
+					       inode->i_ino, (off_t) filp->f_pos, sde.inode);
 
 				i = strnlen(sde.name, SYSV_NAMELEN);
 				if (filldir(dirent, sde.name, i, filp->f_pos, sde.inode) < 0) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this