diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-03-05 09:06:42 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-03-06 12:34:06 -0500 |
commit | fc554ed3d89d220b9d0c020e19aa52fb6bf1d673 (patch) | |
tree | 8e5ec3dcd72e3ee3754785020d262e9c8baed44d /fs/gfs2/trans.c | |
parent | f2113eb8a4ede4016199492f3e10f5a165b04fcd (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/trans.c')
-rw-r--r-- | fs/gfs2/trans.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index 295f400f35ab..3fe8e34a9f5c 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c | |||
@@ -99,11 +99,10 @@ static void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) | |||
99 | 99 | ||
100 | static void gfs2_print_trans(const struct gfs2_trans *tr) | 100 | static void gfs2_print_trans(const struct gfs2_trans *tr) |
101 | { | 101 | { |
102 | printk(KERN_WARNING "GFS2: Transaction created at: %pSR\n", | 102 | pr_warn("GFS2: Transaction created at: %pSR\n", (void *)tr->tr_ip); |
103 | (void *)tr->tr_ip); | 103 | pr_warn("GFS2: blocks=%u revokes=%u reserved=%u touched=%u\n", |
104 | printk(KERN_WARNING "GFS2: blocks=%u revokes=%u reserved=%u touched=%u\n", | ||
105 | tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, tr->tr_touched); | 104 | tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, tr->tr_touched); |
106 | printk(KERN_WARNING "GFS2: Buf %u/%u Databuf %u/%u Revoke %u/%u\n", | 105 | pr_warn("GFS2: Buf %u/%u Databuf %u/%u Revoke %u/%u\n", |
107 | tr->tr_num_buf_new, tr->tr_num_buf_rm, | 106 | tr->tr_num_buf_new, tr->tr_num_buf_rm, |
108 | tr->tr_num_databuf_new, tr->tr_num_databuf_rm, | 107 | tr->tr_num_databuf_new, tr->tr_num_databuf_rm, |
109 | tr->tr_num_revoke, tr->tr_num_revoke_rm); | 108 | tr->tr_num_revoke, tr->tr_num_revoke_rm); |
@@ -232,8 +231,8 @@ static void meta_lo_add(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd) | |||
232 | set_bit(GLF_DIRTY, &bd->bd_gl->gl_flags); | 231 | set_bit(GLF_DIRTY, &bd->bd_gl->gl_flags); |
233 | mh = (struct gfs2_meta_header *)bd->bd_bh->b_data; | 232 | mh = (struct gfs2_meta_header *)bd->bd_bh->b_data; |
234 | if (unlikely(mh->mh_magic != cpu_to_be32(GFS2_MAGIC))) { | 233 | if (unlikely(mh->mh_magic != cpu_to_be32(GFS2_MAGIC))) { |
235 | printk(KERN_ERR | 234 | pr_err("Attempting to add uninitialised block to journal " |
236 | "Attempting to add uninitialised block to journal (inplace block=%lld)\n", | 235 | "(inplace block=%lld)\n", |
237 | (unsigned long long)bd->bd_bh->b_blocknr); | 236 | (unsigned long long)bd->bd_bh->b_blocknr); |
238 | BUG(); | 237 | BUG(); |
239 | } | 238 | } |