diff options
author | Joe Perches <joe@perches.com> | 2014-03-06 15:10:45 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-03-07 04:30:51 -0500 |
commit | d77d1b58aaf4456946b8502c67f16b52fda60303 (patch) | |
tree | 5d829949b7ce4bfcb31c9517a418931d31e48ac2 /fs/gfs2/glock.c | |
parent | a17d758b661d6fa01a0d466d7bdda3c131bb68f9 (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/glock.c')
-rw-r--r-- | fs/gfs2/glock.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 329dc801df4e..52f747858f55 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.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/sched.h> | 12 | #include <linux/sched.h> |
11 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
12 | #include <linux/spinlock.h> | 14 | #include <linux/spinlock.h> |
@@ -468,7 +470,7 @@ retry: | |||
468 | do_xmote(gl, gh, LM_ST_UNLOCKED); | 470 | do_xmote(gl, gh, LM_ST_UNLOCKED); |
469 | break; | 471 | break; |
470 | default: /* Everything else */ | 472 | default: /* Everything else */ |
471 | pr_err("GFS2: wanted %u got %u\n", gl->gl_target, state); | 473 | pr_err("wanted %u got %u\n", gl->gl_target, state); |
472 | GLOCK_BUG_ON(gl, 1); | 474 | GLOCK_BUG_ON(gl, 1); |
473 | } | 475 | } |
474 | spin_unlock(&gl->gl_spin); | 476 | spin_unlock(&gl->gl_spin); |
@@ -542,7 +544,7 @@ __acquires(&gl->gl_spin) | |||
542 | /* lock_dlm */ | 544 | /* lock_dlm */ |
543 | ret = sdp->sd_lockstruct.ls_ops->lm_lock(gl, target, lck_flags); | 545 | ret = sdp->sd_lockstruct.ls_ops->lm_lock(gl, target, lck_flags); |
544 | if (ret) { | 546 | if (ret) { |
545 | pr_err("GFS2: lm_lock ret %d\n", ret); | 547 | pr_err("lm_lock ret %d\n", ret); |
546 | GLOCK_BUG_ON(gl, 1); | 548 | GLOCK_BUG_ON(gl, 1); |
547 | } | 549 | } |
548 | } else { /* lock_nolock */ | 550 | } else { /* lock_nolock */ |
@@ -935,7 +937,7 @@ void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...) | |||
935 | vaf.fmt = fmt; | 937 | vaf.fmt = fmt; |
936 | vaf.va = &args; | 938 | vaf.va = &args; |
937 | 939 | ||
938 | pr_err(" %pV", &vaf); | 940 | pr_err("%pV", &vaf); |
939 | } | 941 | } |
940 | 942 | ||
941 | va_end(args); | 943 | va_end(args); |