From 84483b9203fcd27fb192c25af532625007a04e51 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 22 Oct 2009 14:41:03 -0700 Subject: [PATCH] auth: nicer msg names --- src/messages/MAuth.h | 2 +- src/messages/MAuthReply.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/messages/MAuth.h b/src/messages/MAuth.h index ea56e06e74a2a..f811320cac064 100644 --- a/src/messages/MAuth.h +++ b/src/messages/MAuth.h @@ -22,7 +22,7 @@ struct MAuth : public PaxosServiceMessage { 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(); diff --git a/src/messages/MAuthReply.h b/src/messages/MAuthReply.h index d9fbbd6cd1253..a0bf6d95f4cca 100644 --- a/src/messages/MAuthReply.h +++ b/src/messages/MAuthReply.h @@ -32,8 +32,10 @@ struct MAuthReply : public Message { 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 << ")"; } -- 2.39.5