patch-2.1.37 linux/fs/affs/symlink.c

Next file: linux/fs/autofs/Makefile
Previous file: linux/fs/affs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/fs/affs/symlink.c linux/fs/affs/symlink.c
@@ -82,7 +82,7 @@
 	i  = 0;
 	j  = 0;
 	if (!bh) {
-		printk("AFFS: unable to read i-node block %lu\n",inode->i_ino);
+		affs_error(inode->i_sb,"follow_link","Cannot read block %lu\n",inode->i_ino);
 		kfree(buffer);
 		iput(inode);
 		iput(dir);
@@ -138,7 +138,7 @@
 	i  = 0;
 	j  = 0;
 	if (!bh) {
-		printk("AFFS: unable to read i-node block %lu\n",inode->i_ino);
+		affs_error(inode->i_sb,"readlink","Cannot read block %lu\n",inode->i_ino);
 		goto symlink_end;
 	}
 	lf = (struct slink_front *)bh->b_data;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov