aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-08-08 17:20:59 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-08 18:57:21 -0400
commitde771bdaaa9dd2585c59e1bd6cf2cac83aa0beec (patch)
treeb08856cbfb05bb5e3c0a005c37731711fac9e0e5
parenta9814c5d2dae4b6a3052321a6cb8f2dcc0b3e30b (diff)
fs/ufs: use pr_fmt
Replace UFS-fs, UFS-fs: and UFS: by pr_fmt with module name "ufs: " Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Evgeniy Dushistov <dushistov@mail.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/ufs/super.c15
-rw-r--r--fs/ufs/ufs.h6
2 files changed, 13 insertions, 8 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index 9778b9fb82df..cfa878e3d5e3 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -65,7 +65,6 @@
65 * Evgeniy Dushistov <dushistov@mail.ru>, 2007 65 * Evgeniy Dushistov <dushistov@mail.ru>, 2007
66 */ 66 */
67 67
68
69#include <linux/exportfs.h> 68#include <linux/exportfs.h>
70#include <linux/module.h> 69#include <linux/module.h>
71#include <linux/bitops.h> 70#include <linux/bitops.h>
@@ -310,13 +309,13 @@ void ufs_error (struct super_block * sb, const char * function,
310 va_end (args); 309 va_end (args);
311 switch (UFS_SB(sb)->s_mount_opt & UFS_MOUNT_ONERROR) { 310 switch (UFS_SB(sb)->s_mount_opt & UFS_MOUNT_ONERROR) {
312 case UFS_MOUNT_ONERROR_PANIC: 311 case UFS_MOUNT_ONERROR_PANIC:
313 panic ("UFS-fs panic (device %s): %s: %s\n", 312 panic("panic (device %s): %s: %s\n",
314 sb->s_id, function, error_buf); 313 sb->s_id, function, error_buf);
315 314
316 case UFS_MOUNT_ONERROR_LOCK: 315 case UFS_MOUNT_ONERROR_LOCK:
317 case UFS_MOUNT_ONERROR_UMOUNT: 316 case UFS_MOUNT_ONERROR_UMOUNT:
318 case UFS_MOUNT_ONERROR_REPAIR: 317 case UFS_MOUNT_ONERROR_REPAIR:
319 pr_crit("UFS-fs error (device %s): %s: %s\n", 318 pr_crit("error (device %s): %s: %s\n",
320 sb->s_id, function, error_buf); 319 sb->s_id, function, error_buf);
321 } 320 }
322} 321}
@@ -340,7 +339,7 @@ void ufs_panic (struct super_block * sb, const char * function,
340 vsnprintf (error_buf, sizeof(error_buf), fmt, args); 339 vsnprintf (error_buf, sizeof(error_buf), fmt, args);
341 va_end (args); 340 va_end (args);
342 sb->s_flags |= MS_RDONLY; 341 sb->s_flags |= MS_RDONLY;
343 pr_crit("UFS-fs panic (device %s): %s: %s\n", 342 pr_crit("panic (device %s): %s: %s\n",
344 sb->s_id, function, error_buf); 343 sb->s_id, function, error_buf);
345} 344}
346 345
@@ -352,7 +351,7 @@ void ufs_warning (struct super_block * sb, const char * function,
352 va_start (args, fmt); 351 va_start (args, fmt);
353 vsnprintf (error_buf, sizeof(error_buf), fmt, args); 352 vsnprintf (error_buf, sizeof(error_buf), fmt, args);
354 va_end (args); 353 va_end (args);
355 pr_warn("UFS-fs warning (device %s): %s: %s\n", 354 pr_warn("warning (device %s): %s: %s\n",
356 sb->s_id, function, error_buf); 355 sb->s_id, function, error_buf);
357} 356}
358 357
@@ -464,12 +463,12 @@ static int ufs_parse_options (char * options, unsigned * mount_options)
464 ufs_set_opt (*mount_options, ONERROR_UMOUNT); 463 ufs_set_opt (*mount_options, ONERROR_UMOUNT);
465 break; 464 break;
466 case Opt_onerror_repair: 465 case Opt_onerror_repair:
467 pr_err("UFS-fs: Unable to do repair on error, will lock lock instead\n"); 466 pr_err("Unable to do repair on error, will lock lock instead\n");
468 ufs_clear_opt (*mount_options, ONERROR); 467 ufs_clear_opt (*mount_options, ONERROR);
469 ufs_set_opt (*mount_options, ONERROR_REPAIR); 468 ufs_set_opt (*mount_options, ONERROR_REPAIR);
470 break; 469 break;
471 default: 470 default:
472 pr_err("UFS-fs: Invalid option: \"%s\" or missing value\n", p); 471 pr_err("Invalid option: \"%s\" or missing value\n", p);
473 return 0; 472 return 0;
474 } 473 }
475 } 474 }
@@ -972,7 +971,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
972 971
973again: 972again:
974 if (!sb_set_blocksize(sb, block_size)) { 973 if (!sb_set_blocksize(sb, block_size)) {
975 pr_err("UFS: failed to set blocksize\n"); 974 pr_err("failed to set blocksize\n");
976 goto failed; 975 goto failed;
977 } 976 }
978 977
diff --git a/fs/ufs/ufs.h b/fs/ufs/ufs.h
index 343e6fc571e5..cbe1e9be9013 100644
--- a/fs/ufs/ufs.h
+++ b/fs/ufs/ufs.h
@@ -1,6 +1,12 @@
1#ifndef _UFS_UFS_H 1#ifndef _UFS_UFS_H
2#define _UFS_UFS_H 1 2#define _UFS_UFS_H 1
3 3
4#ifdef pr_fmt
5#undef pr_fmt
6#endif
7
8#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
9
4#define UFS_MAX_GROUP_LOADED 8 10#define UFS_MAX_GROUP_LOADED 8
5#define UFS_CGNO_EMPTY ((unsigned)-1) 11#define UFS_CGNO_EMPTY ((unsigned)-1)
6 12