fs: afs: Use pr_warn instead of pr_warning
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 18 Oct 2019 03:18:40 +0000 (11:18 +0800)
committerPetr Mladek <pmladek@suse.com>
Fri, 18 Oct 2019 13:01:55 +0000 (15:01 +0200)
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of
pr_warning"), removing pr_warning so all logging messages use a
consistent <prefix>_warn style. Let's do it.

Link: http://lkml.kernel.org/r/20191018031850.48498-23-wangkefeng.wang@huawei.com
To: linux-kernel@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>
Cc: linux-afs@lists.infradead.org
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
fs/afs/flock.c
fs/afs/inode.c
fs/afs/yfsclient.c

index d5e5a6d..0f2a94b 100644 (file)
@@ -346,8 +346,8 @@ again:
                if (ret < 0) {
                        trace_afs_flock_ev(vnode, NULL, afs_flock_extend_fail,
                                           ret);
-                       pr_warning("AFS: Failed to extend lock on {%llx:%llx} error %d\n",
-                                  vnode->fid.vid, vnode->fid.vnode, ret);
+                       pr_warn("AFS: Failed to extend lock on {%llx:%llx} error %d\n",
+                               vnode->fid.vid, vnode->fid.vnode, ret);
                }
 
                spin_lock(&vnode->lock);
index 18a50d4..09da87a 100644 (file)
@@ -34,8 +34,7 @@ static noinline void dump_vnode(struct afs_vnode *vnode, struct afs_vnode *paren
 {
        static unsigned long once_only;
 
-       pr_warn("kAFS: AFS vnode with undefined type %u\n",
-               vnode->status.type);
+       pr_warn("kAFS: AFS vnode with undefined type %u\n", vnode->status.type);
        pr_warn("kAFS: A=%d m=%o s=%llx v=%llx\n",
                vnode->status.abort_code,
                vnode->status.mode,
@@ -175,11 +174,11 @@ static void afs_apply_status(struct afs_fs_cursor *fc,
        BUG_ON(test_bit(AFS_VNODE_UNSET, &vnode->flags));
 
        if (status->type != vnode->status.type) {
-               pr_warning("Vnode %llx:%llx:%x changed type %u to %u\n",
-                          vnode->fid.vid,
-                          vnode->fid.vnode,
-                          vnode->fid.unique,
-                          status->type, vnode->status.type);
+               pr_warn("Vnode %llx:%llx:%x changed type %u to %u\n",
+                       vnode->fid.vid,
+                       vnode->fid.vnode,
+                       vnode->fid.unique,
+                       status->type, vnode->status.type);
                afs_protocol_error(NULL, -EBADMSG, afs_eproto_bad_status);
                return;
        }
index 18722aa..b73a4ac 100644 (file)
@@ -152,8 +152,8 @@ static void yfs_check_req(struct afs_call *call, __be32 *bp)
                pr_err("kAFS: %s: Request buffer overflow (%zu>%u)\n",
                       call->type->name, len, call->request_size);
        else if (len < call->request_size)
-               pr_warning("kAFS: %s: Request buffer underflow (%zu<%u)\n",
-                          call->type->name, len, call->request_size);
+               pr_warn("kAFS: %s: Request buffer underflow (%zu<%u)\n",
+                       call->type->name, len, call->request_size);
 }
 
 /*