]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: nicer msg names
authorSage Weil <sage@newdream.net>
Thu, 22 Oct 2009 21:41:03 +0000 (14:41 -0700)
committerSage Weil <sage@newdream.net>
Thu, 22 Oct 2009 21:41:03 +0000 (14:41 -0700)
src/messages/MAuth.h
src/messages/MAuthReply.h

index ea56e06e74a2a71e7fd2bfa2c584afad05635d66..f811320cac0647bb6c81b84385094a7f98c72662 100644 (file)
@@ -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();
index d9fbbd6cd1253753049e02f47cec9a121f9f278b..a0bf6d95f4cca54f597ad118c56982509ef1bdee 100644 (file)
@@ -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 << ")";
   }