aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-03-05 09:06:42 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2014-03-06 12:34:06 -0500
commitfc554ed3d89d220b9d0c020e19aa52fb6bf1d673 (patch)
tree8e5ec3dcd72e3ee3754785020d262e9c8baed44d /fs/gfs2/glock.c
parentf2113eb8a4ede4016199492f3e10f5a165b04fcd (diff)
GFS2: global conversion to pr_foo()
-All printk(KERN_foo converted to pr_foo(). -Messages updated to fit in 80 columns. -fs_macros converted as well. -fs_printk removed. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r--fs/gfs2/glock.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index ca0be6c69a26..329dc801df4e 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -468,7 +468,7 @@ retry:
468 do_xmote(gl, gh, LM_ST_UNLOCKED); 468 do_xmote(gl, gh, LM_ST_UNLOCKED);
469 break; 469 break;
470 default: /* Everything else */ 470 default: /* Everything else */
471 printk(KERN_ERR "GFS2: wanted %u got %u\n", gl->gl_target, state); 471 pr_err("GFS2: wanted %u got %u\n", gl->gl_target, state);
472 GLOCK_BUG_ON(gl, 1); 472 GLOCK_BUG_ON(gl, 1);
473 } 473 }
474 spin_unlock(&gl->gl_spin); 474 spin_unlock(&gl->gl_spin);
@@ -542,7 +542,7 @@ __acquires(&gl->gl_spin)
542 /* lock_dlm */ 542 /* lock_dlm */
543 ret = sdp->sd_lockstruct.ls_ops->lm_lock(gl, target, lck_flags); 543 ret = sdp->sd_lockstruct.ls_ops->lm_lock(gl, target, lck_flags);
544 if (ret) { 544 if (ret) {
545 printk(KERN_ERR "GFS2: lm_lock ret %d\n", ret); 545 pr_err("GFS2: lm_lock ret %d\n", ret);
546 GLOCK_BUG_ON(gl, 1); 546 GLOCK_BUG_ON(gl, 1);
547 } 547 }
548 } else { /* lock_nolock */ 548 } else { /* lock_nolock */
@@ -935,7 +935,7 @@ void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...)
935 vaf.fmt = fmt; 935 vaf.fmt = fmt;
936 vaf.va = &args; 936 vaf.va = &args;
937 937
938 printk(KERN_ERR " %pV", &vaf); 938 pr_err(" %pV", &vaf);
939 } 939 }
940 940
941 va_end(args); 941 va_end(args);
@@ -1010,13 +1010,13 @@ do_cancel:
1010 return; 1010 return;
1011 1011
1012trap_recursive: 1012trap_recursive:
1013 printk(KERN_ERR "original: %pSR\n", (void *)gh2->gh_ip); 1013 pr_err("original: %pSR\n", (void *)gh2->gh_ip);
1014 printk(KERN_ERR "pid: %d\n", pid_nr(gh2->gh_owner_pid)); 1014 pr_err("pid: %d\n", pid_nr(gh2->gh_owner_pid));
1015 printk(KERN_ERR "lock type: %d req lock state : %d\n", 1015 pr_err("lock type: %d req lock state : %d\n",
1016 gh2->gh_gl->gl_name.ln_type, gh2->gh_state); 1016 gh2->gh_gl->gl_name.ln_type, gh2->gh_state);
1017 printk(KERN_ERR "new: %pSR\n", (void *)gh->gh_ip); 1017 pr_err("new: %pSR\n", (void *)gh->gh_ip);
1018 printk(KERN_ERR "pid: %d\n", pid_nr(gh->gh_owner_pid)); 1018 pr_err("pid: %d\n", pid_nr(gh->gh_owner_pid));
1019 printk(KERN_ERR "lock type: %d req lock state : %d\n", 1019 pr_err("lock type: %d req lock state : %d\n",
1020 gh->gh_gl->gl_name.ln_type, gh->gh_state); 1020 gh->gh_gl->gl_name.ln_type, gh->gh_state);
1021 gfs2_dump_glock(NULL, gl); 1021 gfs2_dump_glock(NULL, gl);
1022 BUG(); 1022 BUG();