aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2012-01-26 13:32:22 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 18:47:59 -0500
commitf9fd2d9c1f3b512c9794abbbd76c77a6e6de57aa (patch)
treec6496c3820eeb799c7326abb531308363f5be724
parent87e3c0553fcbea79bf9f17fc5694484ecf3ae5e8 (diff)
NFS: printks in fs/nfs/ should start with NFS:
Messages like "Got error -10052 from the server on DESTROY_SESSION. Session has been destroyed regardless" can be confusing to users who aren't very familiar with NFS. NOTE: This patch ignores any printks() that start by printing __func__ - that will be in a separate patch. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/idmap.c3
-rw-r--r--fs/nfs/nfs4filelayout.c2
-rw-r--r--fs/nfs/nfs4proc.c2
-rw-r--r--fs/nfs/nfs4state.c2
-rw-r--r--fs/nfs/nfs4xdr.c2
5 files changed, 6 insertions, 5 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index ff084d258c4..91b1e2a8214 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -175,7 +175,8 @@ int nfs_idmap_init(void)
175 struct key *keyring; 175 struct key *keyring;
176 int ret = 0; 176 int ret = 0;
177 177
178 printk(KERN_NOTICE "Registering the %s key type\n", key_type_id_resolver.name); 178 printk(KERN_NOTICE "NFS: Registering the %s key type\n",
179 key_type_id_resolver.name);
179 180
180 cred = prepare_kernel_cred(NULL); 181 cred = prepare_kernel_cred(NULL);
181 if (!cred) 182 if (!cred)
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c
index b4f8f9624af..9a058b8c288 100644
--- a/fs/nfs/nfs4filelayout.c
+++ b/fs/nfs/nfs4filelayout.c
@@ -575,7 +575,7 @@ filelayout_decode_layout(struct pnfs_layout_hdr *flo,
575 goto out_err_free; 575 goto out_err_free;
576 fl->fh_array[i]->size = be32_to_cpup(p++); 576 fl->fh_array[i]->size = be32_to_cpup(p++);
577 if (sizeof(struct nfs_fh) < fl->fh_array[i]->size) { 577 if (sizeof(struct nfs_fh) < fl->fh_array[i]->size) {
578 printk(KERN_ERR "Too big fh %d received %d\n", 578 printk(KERN_ERR "NFS: Too big fh %d received %d\n",
579 i, fl->fh_array[i]->size); 579 i, fl->fh_array[i]->size);
580 goto out_err_free; 580 goto out_err_free;
581 } 581 }
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index aaaf98ba895..34e525549f8 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5406,7 +5406,7 @@ int nfs4_proc_destroy_session(struct nfs4_session *session)
5406 5406
5407 if (status) 5407 if (status)
5408 printk(KERN_WARNING 5408 printk(KERN_WARNING
5409 "Got error %d from the server on DESTROY_SESSION. " 5409 "NFS: Got error %d from the server on DESTROY_SESSION. "
5410 "Session has been destroyed regardless...\n", status); 5410 "Session has been destroyed regardless...\n", status);
5411 5411
5412 dprintk("<-- nfs4_proc_destroy_session\n"); 5412 dprintk("<-- nfs4_proc_destroy_session\n");
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 7d098604802..b43a65d7fac 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -1764,7 +1764,7 @@ static void nfs4_state_manager(struct nfs_client *clp)
1764 } while (atomic_read(&clp->cl_count) > 1); 1764 } while (atomic_read(&clp->cl_count) > 1);
1765 return; 1765 return;
1766out_error: 1766out_error:
1767 printk(KERN_WARNING "Error: state manager failed on NFSv4 server %s" 1767 printk(KERN_WARNING "NFS: state manager failed on NFSv4 server %s"
1768 " with error %d\n", clp->cl_hostname, -status); 1768 " with error %d\n", clp->cl_hostname, -status);
1769 nfs4_end_drain_session(clp); 1769 nfs4_end_drain_session(clp);
1770 nfs4_clear_state_manager_bit(clp); 1770 nfs4_clear_state_manager_bit(clp);
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 5d1caac0656..2adcc979e5d 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -1023,7 +1023,7 @@ static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, const
1023 * Now we backfill the bitmap and the attribute buffer length. 1023 * Now we backfill the bitmap and the attribute buffer length.
1024 */ 1024 */
1025 if (len != ((char *)p - (char *)q) + 4) { 1025 if (len != ((char *)p - (char *)q) + 4) {
1026 printk(KERN_ERR "nfs: Attr length error, %u != %Zu\n", 1026 printk(KERN_ERR "NFS: Attr length error, %u != %Zu\n",
1027 len, ((char *)p - (char *)q) + 4); 1027 len, ((char *)p - (char *)q) + 4);
1028 BUG(); 1028 BUG();
1029 } 1029 }