diff options
Diffstat (limited to 'fs/ceph/auth.c')
| -rw-r--r-- | fs/ceph/auth.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/ceph/auth.c b/fs/ceph/auth.c index 818afe72e6c7..9f46de2ba7a7 100644 --- a/fs/ceph/auth.c +++ b/fs/ceph/auth.c | |||
| @@ -150,7 +150,8 @@ int ceph_build_auth_request(struct ceph_auth_client *ac, | |||
| 150 | 150 | ||
| 151 | ret = ac->ops->build_request(ac, p + sizeof(u32), end); | 151 | ret = ac->ops->build_request(ac, p + sizeof(u32), end); |
| 152 | if (ret < 0) { | 152 | if (ret < 0) { |
| 153 | pr_err("error %d building request\n", ret); | 153 | pr_err("error %d building auth method %s request\n", ret, |
| 154 | ac->ops->name); | ||
| 154 | return ret; | 155 | return ret; |
| 155 | } | 156 | } |
| 156 | dout(" built request %d bytes\n", ret); | 157 | dout(" built request %d bytes\n", ret); |
| @@ -216,8 +217,8 @@ int ceph_handle_auth_reply(struct ceph_auth_client *ac, | |||
| 216 | if (ac->protocol != protocol) { | 217 | if (ac->protocol != protocol) { |
| 217 | ret = ceph_auth_init_protocol(ac, protocol); | 218 | ret = ceph_auth_init_protocol(ac, protocol); |
| 218 | if (ret) { | 219 | if (ret) { |
| 219 | pr_err("error %d on auth protocol %d init\n", | 220 | pr_err("error %d on auth method %s init\n", |
| 220 | ret, protocol); | 221 | ret, ac->ops->name); |
| 221 | goto out; | 222 | goto out; |
| 222 | } | 223 | } |
| 223 | } | 224 | } |
| @@ -229,7 +230,7 @@ int ceph_handle_auth_reply(struct ceph_auth_client *ac, | |||
| 229 | if (ret == -EAGAIN) { | 230 | if (ret == -EAGAIN) { |
| 230 | return ceph_build_auth_request(ac, reply_buf, reply_len); | 231 | return ceph_build_auth_request(ac, reply_buf, reply_len); |
| 231 | } else if (ret) { | 232 | } else if (ret) { |
| 232 | pr_err("authentication error %d\n", ret); | 233 | pr_err("auth method '%s' error %d\n", ac->ops->name, ret); |
| 233 | return ret; | 234 | return ret; |
| 234 | } | 235 | } |
| 235 | return 0; | 236 | return 0; |
