MAuth() : PaxosServiceMessage(CEPH_MSG_AUTH, 0) { }
- const char *get_type_name() { return "client_auth"; }
+ const char *get_type_name() { return "auth"; }
void decode_payload() {
bufferlist::iterator p = payload.begin();
const char *get_type_name() { return "auth_reply"; }
void print(ostream& o) {
- o << "auth_reply(" << result;
- if (result_msg.length()) o << " " << result_msg;
+ char buf[80];
+ o << "auth_reply(" << result << " " << strerror_r(-result, buf, sizeof(buf));
+ if (result_msg.length())
+ o << ": " << result_msg;
o << ")";
}