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>
This commit is contained in:

committed by
Steven Whitehouse

parent
f2113eb8a4
commit
fc554ed3d8
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user