@@ -89,7 +89,7 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
8989
9090 bh = sb_bread (inode -> i_sb , block );
9191 if (!bh ) {
92- pr_warn ("EFS: bread () failed at block %d\n" , block );
92+ pr_warn ("%s () failed at block %d\n" , __func__ , block );
9393 goto read_inode_error ;
9494 }
9595
@@ -130,7 +130,8 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
130130 for (i = 0 ; i < EFS_DIRECTEXTENTS ; i ++ ) {
131131 extent_copy (& (efs_inode -> di_u .di_extents [i ]), & (in -> extents [i ]));
132132 if (i < in -> numextents && in -> extents [i ].cooked .ex_magic != 0 ) {
133- pr_warn ("EFS: extent %d has bad magic number in inode %lu\n" , i , inode -> i_ino );
133+ pr_warn ("extent %d has bad magic number in inode %lu\n" ,
134+ i , inode -> i_ino );
134135 brelse (bh );
135136 goto read_inode_error ;
136137 }
@@ -162,7 +163,7 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
162163 init_special_inode (inode , inode -> i_mode , device );
163164 break ;
164165 default :
165- pr_warn ("EFS: unsupported inode mode %o\n" , inode -> i_mode );
166+ pr_warn ("unsupported inode mode %o\n" , inode -> i_mode );
166167 goto read_inode_error ;
167168 break ;
168169 }
@@ -171,7 +172,7 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
171172 return inode ;
172173
173174read_inode_error :
174- pr_warn ("EFS: failed to read inode %lu\n" , inode -> i_ino );
175+ pr_warn ("failed to read inode %lu\n" , inode -> i_ino );
175176 iget_failed (inode );
176177 return ERR_PTR (- EIO );
177178}
@@ -216,7 +217,7 @@ efs_block_t efs_map_block(struct inode *inode, efs_block_t block) {
216217
217218 /* if we only have one extent then nothing can be found */
218219 if (in -> numextents == 1 ) {
219- pr_err ("EFS: map_block () failed to map (1 extent)\n" );
220+ pr_err ("%s () failed to map (1 extent)\n" , __func__ );
220221 return 0 ;
221222 }
222223
@@ -234,7 +235,7 @@ efs_block_t efs_map_block(struct inode *inode, efs_block_t block) {
234235 }
235236 }
236237
237- pr_err ("EFS: map_block () failed to map block %u (dir)\n" , block );
238+ pr_err ("%s () failed to map block %u (dir)\n" , __func__ , block );
238239 return 0 ;
239240 }
240241
@@ -262,7 +263,8 @@ efs_block_t efs_map_block(struct inode *inode, efs_block_t block) {
262263
263264 if (dirext == direxts ) {
264265 /* should never happen */
265- pr_err ("EFS: couldn't find direct extent for indirect extent %d (block %u)\n" , cur , block );
266+ pr_err ("couldn't find direct extent for indirect extent %d (block %u)\n" ,
267+ cur , block );
266268 if (bh ) brelse (bh );
267269 return 0 ;
268270 }
@@ -279,7 +281,8 @@ efs_block_t efs_map_block(struct inode *inode, efs_block_t block) {
279281
280282 bh = sb_bread (inode -> i_sb , iblock );
281283 if (!bh ) {
282- pr_err ("EFS: bread() failed at block %d\n" , iblock );
284+ pr_err ("%s() failed at block %d\n" ,
285+ __func__ , iblock );
283286 return 0 ;
284287 }
285288#ifdef DEBUG
@@ -294,7 +297,8 @@ efs_block_t efs_map_block(struct inode *inode, efs_block_t block) {
294297 extent_copy (& (exts [ioffset ]), & ext );
295298
296299 if (ext .cooked .ex_magic != 0 ) {
297- pr_err ("EFS: extent %d has bad magic number in block %d\n" , cur , iblock );
300+ pr_err ("extent %d has bad magic number in block %d\n" ,
301+ cur , iblock );
298302 if (bh ) brelse (bh );
299303 return 0 ;
300304 }
@@ -306,7 +310,7 @@ efs_block_t efs_map_block(struct inode *inode, efs_block_t block) {
306310 }
307311 }
308312 if (bh ) brelse (bh );
309- pr_err ("EFS: map_block () failed to map block %u (indir)\n" , block );
313+ pr_err ("%s () failed to map block %u (indir)\n" , __func__ , block );
310314 return 0 ;
311315}
312316
0 commit comments