summaryrefslogtreecommitdiff
path: root/fs/gfs2/lock_dlm.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-03-05 18:06:42 +0400
committerSteven Whitehouse <swhiteho@redhat.com>2014-03-06 21:34:06 +0400
commitfc554ed3d89d220b9d0c020e19aa52fb6bf1d673 (patch)
tree8e5ec3dcd72e3ee3754785020d262e9c8baed44d /fs/gfs2/lock_dlm.c
parentf2113eb8a4ede4016199492f3e10f5a165b04fcd (diff)
downloadlinux-fc554ed3d89d220b9d0c020e19aa52fb6bf1d673.tar.xz
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/lock_dlm.c')
-rw-r--r--fs/gfs2/lock_dlm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/gfs2/lock_dlm.c b/fs/gfs2/lock_dlm.c
index 6b97d98919a6..a664dddd91b1 100644
--- a/fs/gfs2/lock_dlm.c
+++ b/fs/gfs2/lock_dlm.c
@@ -176,7 +176,7 @@ static void gdlm_bast(void *arg, int mode)
gfs2_glock_cb(gl, LM_ST_SHARED);
break;
default:
- printk(KERN_ERR "unknown bast mode %d", mode);
+ pr_err("unknown bast mode %d", mode);
BUG();
}
}
@@ -195,7 +195,7 @@ static int make_mode(const unsigned int lmstate)
case LM_ST_SHARED:
return DLM_LOCK_PR;
}
- printk(KERN_ERR "unknown LM state %d", lmstate);
+ pr_err("unknown LM state %d", lmstate);
BUG();
return -1;
}
@@ -308,8 +308,7 @@ static void gdlm_put_lock(struct gfs2_glock *gl)
error = dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_VALBLK,
NULL, gl);
if (error) {
- printk(KERN_ERR "gdlm_unlock %x,%llx err=%d\n",
- gl->gl_name.ln_type,
+ pr_err("gdlm_unlock %x,%llx err=%d\n", gl->gl_name.ln_type,
(unsigned long long)gl->gl_name.ln_number, error);
return;
}