diff options
author | Joe Perches <joe@perches.com> | 2014-03-06 15:17:21 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-03-07 04:39:18 -0500 |
commit | cb94eb066e089da461d37fea39779606512e144a (patch) | |
tree | 12d2f26274a32d80fc46c394c5aefa49f374cdc4 /fs/gfs2/sys.c | |
parent | 8382e26b2c8ba3c4be552d887eed1969dc1a95b8 (diff) |
GFS2: Convert gfs2_lm_withdraw to use fs_err
vprintk use is not prefixed by a KERN_<LEVEL>,
so emit these messages at KERN_ERR level.
Using %pV can save some code and allow fs_err to
be used, so do it.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/sys.c')
-rw-r--r-- | fs/gfs2/sys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index 256354cba4dd..de25d5577e5d 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c | |||
@@ -140,9 +140,8 @@ static ssize_t withdraw_store(struct gfs2_sbd *sdp, const char *buf, size_t len) | |||
140 | if (simple_strtol(buf, NULL, 0) != 1) | 140 | if (simple_strtol(buf, NULL, 0) != 1) |
141 | return -EINVAL; | 141 | return -EINVAL; |
142 | 142 | ||
143 | gfs2_lm_withdraw(sdp, | 143 | gfs2_lm_withdraw(sdp, "withdrawing from cluster at user's request\n"); |
144 | "GFS2: fsid=%s: withdrawing from cluster at user's request\n", | 144 | |
145 | sdp->sd_fsname); | ||
146 | return len; | 145 | return len; |
147 | } | 146 | } |
148 | 147 | ||