diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-05-01 09:17:50 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-05-03 12:19:33 -0400 |
commit | 9b1d75b75505cff4468ceba0da51a1ba47e15ea2 (patch) | |
tree | 1ddb72615678d60615581f7bfed944e55bdfce07 /net | |
parent | c5a2a15f8146fdfe45078df7873a6dc1006b3869 (diff) |
SUNRPC: Don't spam syslog with "Pseudoflavor not found" messages
Just convert those messages to dprintk()s so that they can be used
when debugging.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 3 | ||||
-rw-r--r-- | net/sunrpc/clnt.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 51415b07174e..b5dd6922493a 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c | |||
@@ -867,8 +867,7 @@ gss_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor) | |||
867 | err = -EINVAL; | 867 | err = -EINVAL; |
868 | gss_auth->mech = gss_mech_get_by_pseudoflavor(flavor); | 868 | gss_auth->mech = gss_mech_get_by_pseudoflavor(flavor); |
869 | if (!gss_auth->mech) { | 869 | if (!gss_auth->mech) { |
870 | printk(KERN_WARNING "%s: Pseudoflavor %d not found!\n", | 870 | dprintk("RPC: Pseudoflavor %d not found!\n", flavor); |
871 | __func__, flavor); | ||
872 | goto err_free; | 871 | goto err_free; |
873 | } | 872 | } |
874 | gss_auth->service = gss_pseudoflavor_to_service(gss_auth->mech, flavor); | 873 | gss_auth->service = gss_pseudoflavor_to_service(gss_auth->mech, flavor); |
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index d259fa966927..e9143edcb23b 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -360,7 +360,7 @@ static struct rpc_clnt * rpc_new_client(const struct rpc_create_args *args, stru | |||
360 | 360 | ||
361 | auth = rpcauth_create(args->authflavor, clnt); | 361 | auth = rpcauth_create(args->authflavor, clnt); |
362 | if (IS_ERR(auth)) { | 362 | if (IS_ERR(auth)) { |
363 | printk(KERN_INFO "RPC: Couldn't create auth handle (flavor %u)\n", | 363 | dprintk("RPC: Couldn't create auth handle (flavor %u)\n", |
364 | args->authflavor); | 364 | args->authflavor); |
365 | err = PTR_ERR(auth); | 365 | err = PTR_ERR(auth); |
366 | goto out_no_auth; | 366 | goto out_no_auth; |