aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/util.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-03-06 15:10:45 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2014-03-07 04:30:51 -0500
commitd77d1b58aaf4456946b8502c67f16b52fda60303 (patch)
tree5d829949b7ce4bfcb31c9517a418931d31e48ac2 /fs/gfs2/util.c
parenta17d758b661d6fa01a0d466d7bdda3c131bb68f9 (diff)
GFS2: Use pr_<level> more consistently
Add pr_fmt, remove embedded "GFS2: " prefixes. This now consistently emits lower case "gfs2: " for each message. Other miscellanea around these changes: o Add missing newlines o Coalesce formats o Realign arguments Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/util.c')
-rw-r--r--fs/gfs2/util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c
index e9d700194015..02fb38db9d19 100644
--- a/fs/gfs2/util.c
+++ b/fs/gfs2/util.c
@@ -7,6 +7,8 @@
7 * of the GNU General Public License version 2. 7 * of the GNU General Public License version 2.
8 */ 8 */
9 9
10#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
11
10#include <linux/spinlock.h> 12#include <linux/spinlock.h>
11#include <linux/completion.h> 13#include <linux/completion.h>
12#include <linux/buffer_head.h> 14#include <linux/buffer_head.h>
@@ -30,7 +32,7 @@ mempool_t *gfs2_page_pool __read_mostly;
30 32
31void gfs2_assert_i(struct gfs2_sbd *sdp) 33void gfs2_assert_i(struct gfs2_sbd *sdp)
32{ 34{
33 pr_emerg("GFS2: fsid=%s: fatal assertion failed\n", sdp->sd_fsname); 35 pr_emerg("fsid=%s: fatal assertion failed\n", sdp->sd_fsname);
34} 36}
35 37
36int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...) 38int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...)
@@ -65,7 +67,7 @@ int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...)
65 } 67 }
66 68
67 if (sdp->sd_args.ar_errors == GFS2_ERRORS_PANIC) 69 if (sdp->sd_args.ar_errors == GFS2_ERRORS_PANIC)
68 panic("GFS2: fsid=%s: panic requested.\n", sdp->sd_fsname); 70 panic("GFS2: fsid=%s: panic requested\n", sdp->sd_fsname);
69 71
70 return -1; 72 return -1;
71} 73}
@@ -104,10 +106,8 @@ int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
104 return -2; 106 return -2;
105 107
106 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW) 108 if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW)
107 pr_warn("GFS2: fsid=%s: warning: assertion \"%s\" failed\n" 109 pr_warn("fsid=%s: warning: assertion \"%s\" failed at function = %s, file = %s, line = %u\n",
108 "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", 110 sdp->sd_fsname, assertion, function, file, line);
109 sdp->sd_fsname, assertion,
110 sdp->sd_fsname, function, file, line);
111 111
112 if (sdp->sd_args.ar_debug) 112 if (sdp->sd_args.ar_debug)
113 BUG(); 113 BUG();